Search found 13 matches
- Sat Dec 23, 2023 4:49 pm
- Forum: Programming
- Topic: Boolean logic: "short circuit evaluation"?
- Replies: 17
- Views: 801
Re: Boolean logic: "short circuit evaluation"?
If I've understand it should be something as (for AND) 10 IF a THEN IF b THEN IF c THEN PRINT "oki doki" and for OR 10 IF NOT a THEN IF NOT b THEN IF NOT c THEN GOTO 30 20 PRINT "oki doki" 30 STOP ? That’s correct. Put the expression most likely to fail first, then the others do...
- Sat Dec 23, 2023 4:41 pm
- Forum: ZX Spectrum Next
- Topic: Next and the RST 16
- Replies: 1
- Views: 308
Re: Next and the RST 16
You are copying 1 too many bytes to LAYER 0 and therefore clobbering the start of the paging routine after the attributes. LDIR counts down to zero. You get this right for attributes but by then you’ve tried to stuff 6145 bytes into the pixel area. Off by one errors are almost the only sort I make, ...
- Sat Dec 23, 2023 4:29 pm
- Forum: Programming
- Topic: the way the spectrum arranges the screen
- Replies: 25
- Views: 1217
- Sat Dec 23, 2023 4:21 pm
- Forum: Programming
- Topic: Variables replacement with numbers
- Replies: 8
- Views: 355
Re: Variables replacement with numbers
Use my MultiSearch from Your Spectrum issue 12
http://www.users.globalnet.co.uk/~jg27p ... r12_47.htm
I also find it handy for eliminating spurious %s in NextBASIC after renumbering.
https://simon.mooli.org.uk/nextech/index.html#NoGo
Two cheers for compatibility!
http://www.users.globalnet.co.uk/~jg27p ... r12_47.htm
I also find it handy for eliminating spurious %s in NextBASIC after renumbering.
https://simon.mooli.org.uk/nextech/index.html#NoGo
Two cheers for compatibility!
- Sat Dec 23, 2023 4:08 pm
- Forum: Programming
- Topic: this short program crashes the spectrum
- Replies: 41
- Views: 1559
- Sat Dec 23, 2023 3:52 pm
- Forum: Programming
- Topic: Memory saving in BASIC - summary table
- Replies: 27
- Views: 964
Re: Memory saving in BASIC - summary table
Nine Tiles, what were you thinking? You were thinking "oh hell it has to be done by Thursday". I know John Grant. Your mockery is misplaced. Clive Sinclair flatly refused to spend a few thousand pounds to have the BASIC intended for a 1K computer refactored for 48K or more, insisted on mi...
- Sat Dec 23, 2023 3:41 pm
- Forum: ZX Spectrum Next
- Topic: Next (KS2) joysticks
- Replies: 10
- Views: 951
Re: Next (KS2) joysticks
By ‘startup’ I was referring to the menu in the anti-brick scheme, before NextZXOS (or Acorn or other cores) is loaded. Press space immediately after powering up to see that one and adjust the defaults. Let us know if it helps. You can always change the joystick configurations with NextREG 5. Mask o...
- Sat Dec 23, 2023 10:45 am
- Forum: Hardware
- Topic: Why was ZX 48K so cheap ? And was it really cheap ?
- Replies: 19
- Views: 906
Re: Why was ZX 48K so cheap ? And was it really cheap ?
Sinclair paid Timex £34 for each complete boxed 48K Spectrum system according to Tony Tebby who wrote the QL OS there in 1983. The QL was sufficiently profitable at £199 retail for Amstrad to restart QL production after their takeover, to satisfy demand from Dixons who I understand expected at least...
- Sat Dec 23, 2023 10:26 am
- Forum: Hardware
- Topic: Could standard cassette use stereo tracks to double data density ?
- Replies: 21
- Views: 1091
Re: Could standard cassette use stereo tracks to double data density ?
I think someone on youtube may have mocked up a tape recorder that simply played its track faster, and loaded the games quicker -lol I wouldnt know how to search for that on youtube but ill give it a try. The SAM cassette loader (ROM source freely available) adjusts to the relative speed of the CPU...
- Sat Dec 23, 2023 9:59 am
- Forum: ZX Spectrum Next
- Topic: Next (KS2) joysticks
- Replies: 10
- Views: 951
Re: Next (KS2) joysticks
Several places? The startup menu, normally skipped, sets the defaults. These persist till you change them. The NextZXOS menu lets you over-ride them temporarily during a session. It shows what you set as default, then lets you change that. It seems sensible to have both. The options exist because th...
- Sat Dec 23, 2023 9:44 am
- Forum: ZX Spectrum Next
- Topic: Error in nextbasic
- Replies: 7
- Views: 549
Re: Error in nextbasic
Line 48 is entirely redundant and can safely be omitted, BTW. Incidentally the title is misleading. There is no error in nextBASIC shown here, just one common beginner misunderstanding about the meaning and purpose of % there. I have explained that more fully in another reply here. I think a lot of ...
- Sat Dec 23, 2023 9:36 am
- Forum: ZX Spectrum Next
- Topic: Error in nextbasic
- Replies: 7
- Views: 549
Re: Error in nextbasic
The suggestion fixed one error, the use of x in an integer context when %x was required, but introduced another of the same type. 60 let %a=% bank 20 peek x : print %a Now you are assigning to %a so printing it makes sense. Alternative fix: 60 let a=% bank 20 peek x : print a Or cut out the middle-m...
- Sat Dec 23, 2023 12:23 am
- Forum: ZX Spectrum Next
- Topic: data from bank 22 to bank 14 does not work in nextbasic
- Replies: 1
- Views: 210
Re: data from bank 22 to bank 14 does not work in nextbasic
Your code does not work because you are setting the variable b and then using the independent variable %b in the integer PEEK expression. The % is effective on all variable references till the end of the expression e.g. up to THEN, colon, comma or enter. Set %b instead of b and it will work as you e...