SE Basic IV 4.0 Anya

English forum about Speccy

Moderator: Shaos

User avatar
cheveron
Fanat
Posts: 52
Joined: 29 Jan 2013 13:43
Location: 86.182.165.70

Post by cheveron »

Shaos wrote:I already forked your repository on GitHub ;)

Now I need to understand how to build BasicSE IV from sources...
I use GNU binutils.
User avatar
Shaos
Admin
Posts: 24011
Joined: 08 Jan 2003 23:22
Location: Silicon Valley

Post by Shaos »

cheveron wrote:
Shaos wrote:I already forked your repository on GitHub ;)

Now I need to understand how to build BasicSE IV from sources...
I use GNU binutils.
Some special cross-compiled build?
Я тут за главного - если что шлите мыло на me собака shaos точка net
User avatar
cheveron
Fanat
Posts: 52
Joined: 29 Jan 2013 13:43
Location: 86.182.165.70

Post by cheveron »

Shaos wrote:
cheveron wrote:
Shaos wrote:I already forked your repository on GitHub ;)

Now I need to understand how to build BasicSE IV from sources...
I use GNU binutils.
Some special cross-compiled build?
Just the standard GNU binutils. It has included Z80 support for a while. Obviously you'll need to install the libraries for that architecture, but if you're running Debian you should be able to just apt-get them.
User avatar
Shaos
Admin
Posts: 24011
Joined: 08 Jan 2003 23:22
Location: Silicon Valley

Post by Shaos »

I have Debian on my work and also on my wife's computer

On my home computer where I do everything I have Slackware - things are a little bit complicated there...
Я тут за главного - если что шлите мыло на me собака shaos точка net
User avatar
cheveron
Fanat
Posts: 52
Joined: 29 Jan 2013 13:43
Location: 86.182.165.70

Post by cheveron »

Shaos wrote:On my home computer where I do everything I have Slackware - things are a little bit complicated there...
I have a colleague who uses Slackware for his job. He also writes Java code in Emacs.
User avatar
cheveron
Fanat
Posts: 52
Joined: 29 Jan 2013 13:43
Location: 86.182.165.70

Post by cheveron »

I had a request from Alone Coder to port SE Basic IV to the ATM Turbo 2. Any chance your Sprinter version could be adapted? Also work is going well on v4.1. The keyboard arrangement might take a bit of getting used to but it will make entering 8-bit character sets much easier.
User avatar
Shaos
Admin
Posts: 24011
Joined: 08 Jan 2003 23:22
Location: Silicon Valley

Post by Shaos »

I didn't modify anything in your sources yet - I simply added partial SE emulation to my Zpring emulator ;)

Basically I'm pretty sure that I can port it to Turbo2+ (and Sprinter)

Also about shortcuts - I think 4.0 approach (separate characters) is better then totally new shortcuts layout...
Я тут за главного - если что шлите мыло на me собака shaos точка net
User avatar
cheveron
Fanat
Posts: 52
Joined: 29 Jan 2013 13:43
Location: 86.182.165.70

Post by cheveron »

Shaos wrote:I didn't modify anything in your sources yet - I simply added partial SE emulation to my Zpring emulator ;)
I see.
Basically I'm pretty sure that I can port it to Turbo2+ (and Sprinter)
That's great. I guess it won't be too hard to modify the hires ROM to use 80x25 text mode.
Also about shortcuts - I think 4.0 approach (separate characters) is better then totally new shortcuts layout...
I guess I didn't make it clear. Letter by letter entry (with optional abbreviations) is still the standard keyword entry method. But now you can also enter any character in the range 32 to 255. This is mainly to make it easier to use 8-bit character sets. But in 7-bit mode it enables you to enter block graphics, UDGs and tokens.
User avatar
Shaos
Admin
Posts: 24011
Joined: 08 Jan 2003 23:22
Location: Silicon Valley

Post by Shaos »

cheveron wrote:I guess I didn't make it clear. Letter by letter entry (with optional abbreviations) is still the standard keyword entry method. But now you can also enter any character in the range 32 to 255. This is mainly to make it easier to use 8-bit character sets. But in 7-bit mode it enables you to enter block graphics, UDGs and tokens.
OK, but why new layout? Why not to keep old words at their old places?...
Я тут за главного - если что шлите мыло на me собака shaos точка net
User avatar
cheveron
Fanat
Posts: 52
Joined: 29 Jan 2013 13:43
Location: 86.182.165.70

Post by cheveron »

Shaos wrote:OK, but why new layout? Why not to keep old words at their old places?...
I didn't choose the layout. It's the result of simplifying the keyboard entry system (which frees up a lot of space for extra functionality).
I've replaced GRAPH and EXTEND mode with something more akin to how old terminal systems worked. CONTROL adds 79 to the code value of the next key entered which means CONTROL-SHIFT+A still gives UDG A. META sets bit 7 of the next key entered. They work a bit like the old EXTEND mode in that as soon as the character is entered the mode reverts to normal.
User avatar
Shaos
Admin
Posts: 24011
Joined: 08 Jan 2003 23:22
Location: Silicon Valley

Post by Shaos »

OK, I see
Я тут за главного - если что шлите мыло на me собака shaos точка net
User avatar
Shaos
Admin
Posts: 24011
Joined: 08 Jan 2003 23:22
Location: Silicon Valley

Post by Shaos »

cheveron wrote:
Shaos wrote:
cheveron wrote:
Shaos wrote:I already forked your repository on GitHub ;)

Now I need to understand how to build BasicSE IV from sources...
I use GNU binutils.
Some special cross-compiled build?
Just the standard GNU binutils. It has included Z80 support for a while. Obviously you'll need to install the libraries for that architecture, but if you're running Debian you should be able to just apt-get them.
Finally I built it on my wife's Debian computer
This is listing files:
http://www.nedopc.org/nedopc/upload/sebasic4lst.zip
Я тут за главного - если что шлите мыло на me собака shaos точка net
User avatar
Shaos
Admin
Posts: 24011
Joined: 08 Jan 2003 23:22
Location: Silicon Valley

Post by Shaos »

Question

sebasic4 has examples folder where I can see a lot of programs with "Run-time Variables" as this one:

Code: Select all

Auto 0

# Run-time Variables

Var f: NumFOR = 22528, 7, 2, 10, 2
Var y: NumFOR = 22, 21, 1, 20, 2
Var x: NumFOR = 32, 31, 1, 20, 3
Var g: NumFOR = 22528, 22527, 1, 60, 2

# End Run-time Variables

  10 FOR f=0 TO 7 STEP 2:\
     POKE USR "a"+f,BIN 10101010:\
     POKE USR "a"+F+1,BIN 01010101:\
     NEXT f
  20 FOR y=0 TO 21:\
     FOR x=0 TO 31:\
     PRINT AT y,x;"\a":\
     NEXT x:\
     NEXT y
  30 PAUSE 0:\
     CLS
  40 LET f=16384
  50 FOR g=f TO f+255:\
     POKE g,85:\
     NEXT g
  60 FOR g=f+256 TO f+511:\
     POKE g,170:\
     NEXT g
  70 LET f=f+512
  80 IF f<22528 THEN GO TO 50
  90 PAUSE 0
What is this? Also se2tap from tools folder can't compile it - se2tap doesn't like lines without number at the beginning and '\' character. So how it could be compiled?...
Я тут за главного - если что шлите мыло на me собака shaos точка net
User avatar
cheveron
Fanat
Posts: 52
Joined: 29 Jan 2013 13:43
Location: 86.182.165.70

Post by cheveron »

Those are the examples programs I lifted from BASin. I really need to go through and clean all that stuff at some point. After the 4.1 release though (which juggles a couple of tokens around for better backwards compatibility). Would have replied sooner but I've been on holiday in Turkey and Georgia.
User avatar
Shaos
Admin
Posts: 24011
Joined: 08 Jan 2003 23:22
Location: Silicon Valley

Post by Shaos »

cheveron wrote:Those are the examples programs I lifted from BASin. I really need to go through and clean all that stuff at some point. After the 4.1 release though (which juggles a couple of tokens around for better backwards compatibility). Would have replied sooner but I've been on holiday in Turkey and Georgia.
But what is "Var" thing anyway?...
Я тут за главного - если что шлите мыло на me собака shaos точка net