Search found 528 matches
- Tue Jan 03, 2023 2:32 pm
- Forum: Programming
- Topic: i have another piece of code that just locks up
- Replies: 22
- Views: 490
Re: i have another piece of code that just locks up
If you run PRINT USR "a" you should get a number that's identical to the number at 23675, this is where the DE needs to sit right before the LDIR is executed. Normally this is 65368. i went through the code and found a few bugs. its kind of mostly working now, i think. if you press the r ...
- Tue Jan 03, 2023 1:45 pm
- Forum: Programming
- Topic: i have another piece of code that just locks up
- Replies: 22
- Views: 490
Re: i have another piece of code that just locks up
If you run PRINT USR "a" you should get a number that's identical to the number at 23675, this is where the DE needs to sit right before the LDIR is executed. Normally this is 65368. ive managed to get the sprite to move around the screen but it crashes when i press any of the other keys....
- Tue Jan 03, 2023 1:43 pm
- Forum: Programming
- Topic: i have another piece of code that just locks up
- Replies: 22
- Views: 490
Re: i have another piece of code that just locks up
It's got to be said, that's a horrible book for trying to learn assembly from. And the embedded machine code in REMs was never going to play well with typed in code. I wonder if it originally came with a cassette copy of all the listings or if it just never worked? Even the assembly examples are pr...
- Tue Jan 03, 2023 1:09 pm
- Forum: Programming
- Topic: i have another piece of code that just locks up
- Replies: 22
- Views: 490
Re: i have another piece of code that just locks up
That's good, because now you're able to observe something that can be worked on, instead of experiencing a crash. The UDGs are defined right at the start. Check why this is not done. Set a breakpoint at the first instruction and go step by step. The first LDIR is supposed to copy the graphic bytes ...
- Tue Jan 03, 2023 2:57 am
- Forum: Programming
- Topic: i have another piece of code that just locks up
- Replies: 22
- Views: 490
Re: i have another piece of code that just locks up
I think you can omit the call. Instead do this: ;call 23760 ld a,2 call 5633 ; open channel 'S' and give it a go. ok, the abc characters come up now but they are not udg's. and when i try and press a key the screen shows artefacts and eventually crashes. it also looks like some of the machine code ...
- Mon Jan 02, 2023 5:30 pm
- Forum: Programming
- Topic: i have another piece of code that just locks up
- Replies: 22
- Views: 490
Re: i have another piece of code that just locks up
The author of this book uses a special assembler (McGraw-Hill as stated in the preface). And that's why all examples in this book use this 'org 23760' which is causing trouble in ZX Spin. Try a higher ORG address and adjust the calls. In the book's example there's a line 1 REM >? STEP ....etc which...
- Mon Jan 02, 2023 4:40 pm
- Forum: Programming
- Topic: i have another piece of code that just locks up
- Replies: 22
- Views: 490
Re: i have another piece of code that just locks up
Hi! Right at the start there's a call to 23760, and that's right into the first line of your Basic program. 500 DATA 24,79,5,2,"STOP THE TAPE" ^ here is 23760, which is garbage to call at hi, im not sure how to do that. there are so many calls to addresses around 23xxx in the code that im...
- Mon Jan 02, 2023 3:24 pm
- Forum: Programming
- Topic: i have another piece of code that just locks up
- Replies: 22
- Views: 490
i have another piece of code that just locks up
i decided to type it out anyway, here: org 30001 di call 23760 jr START DATA1 defb 0,0,15,24,49,226,255,224 dEfb 24,60,255,255,153,255,231 defb 60,0,0,240,24,140,71,135,7 START ld de,(23675) ld hl,DATA1 ld bc,24 ldir jr BEGIN DATA2 defb 22,0,0,16,8,17,8,144,145 defb 146 BEGIN ld de,DATA2 ld bc,10 ca...
- Sat Dec 31, 2022 8:29 pm
- Forum: Programming
- Topic: another piece of code from assembly language for games and other fast spectrum programs that doesnt work
- Replies: 13
- Views: 452
- Sat Dec 31, 2022 8:19 pm
- Forum: Programming
- Topic: another piece of code from assembly language for games and other fast spectrum programs that doesnt work
- Replies: 13
- Views: 452
Re: another piece of code from assembly language for games and other fast spectrum programs that doesnt work
How do you compile and start the code? Make sure you didn't run an old binary. Sorry for asking this kind of stuff but I don't use compilers myself and don't know how you do it over there. Yep according to what I've read that's fixed so far. Issue 2-4 isn't that critical. i just used spin assembler...
- Sat Dec 31, 2022 2:14 pm
- Forum: Programming
- Topic: another piece of code from assembly language for games and other fast spectrum programs that doesnt work
- Replies: 13
- Views: 452
- Sat Dec 31, 2022 1:39 pm
- Forum: Programming
- Topic: another piece of code from assembly language for games and other fast spectrum programs that doesnt work
- Replies: 13
- Views: 452
Re: another piece of code from assembly language for games and other fast spectrum programs that doesnt work
no, it does nothingsn3j wrote: ↑Sat Dec 31, 2022 10:49 am With all fixes applied the code should do ok.
Does it clear the screen and do you see the spaceship?
Ink value should be 8 btw:Code: Select all
defb 22,0,0,16, 8, 17,8
- Sat Dec 31, 2022 10:26 am
- Forum: Programming
- Topic: another piece of code from assembly language for games and other fast spectrum programs that doesnt work
- Replies: 13
- Views: 452
- Fri Dec 30, 2022 5:24 pm
- Forum: Programming
- Topic: another piece of code from assembly language for games and other fast spectrum programs that doesnt work
- Replies: 13
- Views: 452
another piece of code from assembly language for games and other fast spectrum programs that doesnt work
it tried typing this in and the code does absolutely nothing. its supposed to move a spaceship around. ive double checked the code and cant find any errors: org 23760 ;disable keyboard di jr start ;udg data data1 ;chr$ 144 defb 0,0,15,24,49,226,255,224 ;chr$ 145 defb 24,60,255,255,153,255,231,60 ;ch...
- Thu Dec 29, 2022 10:55 pm
- Forum: Other Retro Stuff
- Topic: What projects are you working on (retro)
- Replies: 18
- Views: 654
Re: What projects are you working on (retro)
Have you got a TL866II PLUS USB Minipro Programmer EEPROM FLASH or have you got the complete kit to make up, I was going to buy one. Was thinking to do a ZX Dandanator Mini 2.1 and program the eeproms. I'm having to build it myself. So I will need the programmer at some point. I think you program i...
- Thu Dec 29, 2022 8:50 pm
- Forum: Other Retro Stuff
- Topic: What projects are you working on (retro)
- Replies: 18
- Views: 654
Re: What projects are you working on (retro)
im building a finalgrom for the ti99 with surface mount devices
- Tue Dec 27, 2022 12:38 am
- Forum: Programming
- Topic: ive been through this code and cannot figure out why it isnt working
- Replies: 45
- Views: 1008
Re: ive been through this code and cannot figure out why it isnt working
could you send me a sna of it?WhatHoSnorkers wrote: ↑Mon Dec 26, 2022 6:41 pm This has been fun, and I can't get it working fully yet... but at least it doesn't crash any more. A lot of the problems were of my own making, and interoperation with the BASIC Assembly.
- Sat Dec 24, 2022 2:37 pm
- Forum: Programming
- Topic: ive been through this code and cannot figure out why it isnt working
- Replies: 45
- Views: 1008
Re: ive been through this code and cannot figure out why it isnt working
@azesmbog,
ive found this program, which does the same thing, although it works in a different way according to the basic listing. unfortunately its in german.
https://spectrumcomputing.co.uk/entry/8 ... Plot-Print
Edited by PJ
ive found this program, which does the same thing, although it works in a different way according to the basic listing. unfortunately its in german.
https://spectrumcomputing.co.uk/entry/8 ... Plot-Print
Edited by PJ
- Wed Dec 21, 2022 12:27 pm
- Forum: Programming
- Topic: ive been through this code and cannot figure out why it isnt working
- Replies: 45
- Views: 1008
Re: ive been through this code and cannot figure out why it isnt working
- Wed Dec 21, 2022 2:00 am
- Forum: Programming
- Topic: ive been through this code and cannot figure out why it isnt working
- Replies: 45
- Views: 1008
- Tue Dec 20, 2022 4:43 pm
- Forum: Programming
- Topic: ive been through this code and cannot figure out why it isnt working
- Replies: 45
- Views: 1008
Re: ive been through this code and cannot figure out why it isnt working
https://cdn3.emoji.gg/emojis/4718_chad_yes.png Yes. The BASIC listing has no dodgy USR calls - it only ever starts at 32393, and the code is not doing what it says in the text. And while I may cast doubt on 777's ability to type in a listing accurately, there is a noticeable amount of slop in the o...
- Tue Dec 20, 2022 4:11 pm
- Forum: Programming
- Topic: ive been through this code and cannot figure out why it isnt working
- Replies: 45
- Views: 1008
Re: ive been through this code and cannot figure out why it isnt working
@TMD2003
where is jr -4 and jr 11 in the code?
Removed quoting - PJ
where is jr -4 and jr 11 in the code?
Removed quoting - PJ
- Tue Dec 20, 2022 3:40 pm
- Forum: Programming
- Topic: ive been through this code and cannot figure out why it isnt working
- Replies: 45
- Views: 1008
- Tue Dec 20, 2022 3:37 pm
- Forum: Programming
- Topic: ive been through this code and cannot figure out why it isnt working
- Replies: 45
- Views: 1008
Re: ive been through this code and cannot figure out why it isnt working
There are several "jr' instructions, but I only noticed 2 "jr z" instructions, at addresses 32363 and 32373. The only problems you mentioned were "jr z" with negative offsets, and removing + from "jp z" which is odd since all "jp" in the listing use labe...
- Tue Dec 20, 2022 3:28 pm
- Forum: Programming
- Topic: ive been through this code and cannot figure out why it isnt working
- Replies: 45
- Views: 1008
Re: ive been through this code and cannot figure out why it isnt working
I'm going to type this in myself and see if I can get what's happening. I'll uploaded a snapshot when I'm done. One thing I have found with Spin's assembler is that sometimes it will not accept a label - usually if it's interpreted as a command. The JR L1 and JR L2 in this listing might throw it. U...