Wow, dude . . . That’s, like, not cool, man.
Glad I spent some time creating a syntax highlighter and a few scripts and templates for the TextMate+zasm combo.
Wow, dude . . . That’s, like, not cool, man.
Haha, R-Tape, so do IAst A. Moore wrote: ↑Wed Mar 28, 2018 10:26 amWow, dude . . . That’s, like, not cool, man.
Glad I spent some time creating a syntax highlighter and a few scripts and templates for the TextMate+zasm combo.
*backs away slowly*Sokurah wrote: ↑Wed Mar 28, 2018 10:33 amHaha, R-Tape, so do IAst A. Moore wrote: ↑Wed Mar 28, 2018 10:26 am Wow, dude . . . That’s, like, not cool, man.
Glad I spent some time creating a syntax highlighter and a few scripts and templates for the TextMate+zasm combo.
As the SPIN assembler dumps the code directly I use that for all the development and testing, so I only need to make the TAP (or TZX) at the every end.
I still make my TAP files in the emulator using 'insert tape' and SAVE""CODE from speccy BASIC.
And me tooHaha, R-Tape, so do I
Keep ’em comin’. The exorcists says he charges by the hour. Whether it’s one person or ten—makes no difference.
I believe things like JR NZ to Loop2 is some rare syntax not supported by modern crosscompilersWhat errors were you getting with the original code @MrPixel .
Code: Select all
org $6000
LD HL,22527
LD BC,192
loop PUSH BC
LD BC,-31
ADD HL,BC
LD A,(HL)
LD D,H
LD E,L
INC HL
LD BC,31
LDIR
DEC HL
LD (HL),A
LD BC,-32
ADD HL,BC
POP BC
DEC BC
LD A,B
OR C
JR NZ,loop
LD BC,24
LD DE,22528
LD HL,22529
loop2 LD A,(DE)
PUSH BC
LD BC,31
LDIR
DEC HL
LD (HL),A
INC DE
INC HL
INC HL
POP BC
DEC BC
LD A,B
OR C
JR NZ,loop2
RET
END $6000
Learn to think like the computer hates you, because it does. - Zed Shaw
You have used the same label name more than once.
You can't use assembler terms that you use to manipulate code (e.g. a,b,c,and,or,rlca etc) as labels. With ZX-Spin for example these things are colour coded, cyan for opcode, and magenta for labels. So if your label is not magenta, you can't use it.invalid combination of opcodes and errors for this:
Code: Select all
DI ; 4 clocks F3
LD HL, $8002 ; 10 21 02 80
namea: DEC HL ; 6 2B
nameb: DEC HL ; 6 2B
namec: INC (HL) ; 11 34
JR NZ,namec ; 7/12 20 FD (they appear on this line)
INC HL ; 6 23
INC (HL) ; 11 34
JR NZ, nameb ; 7/12 20 F8
INC HL ; 6 23
INC (HL) ; 11 34
JR NZ, namea ; 7/12 20 F3
EI ; 4 FB
RET
Chin up chef, you'll get therethis forces me to find workarounds, ruining the code. it's pissing me off
What kinda hero journey would it be without struggle, personal growth/development? This ain't no Disney star wars!
Respect the burden. - Napoleon
“I don’t like cats.”
everything works fine with your code save for the ORG bit. nothing i do is working. a little help? i try 6000, 2000, hell i even did 100R-Tape wrote: ↑Sat Mar 31, 2018 12:51 pm
You can't use assembler terms that you use to manipulate code (e.g. a,b,c,and,or,rlca etc) as labels. With ZX-Spin for example these things are colour coded, cyan for opcode, and magenta for labels. So if your label is not magenta, you can't use it.
It needs to be something like this, and now you've used "namea" you cannot use it to label another routine.
Code: Select all
DI ; 4 clocks F3 LD HL, $8002 ; 10 21 02 80 namea: DEC HL ; 6 2B nameb: DEC HL ; 6 2B namec: INC (HL) ; 11 34 JR NZ,namec ; 7/12 20 FD (they appear on this line) INC HL ; 6 23 INC (HL) ; 11 34 JR NZ, nameb ; 7/12 20 F8 INC HL ; 6 23 INC (HL) ; 11 34 JR NZ, namea ; 7/12 20 F3 EI ; 4 FB RET
If you're doing ORG 6000 (decimal) rather than ORG $6000 (hexadecimal) then you're asking it to assemble to ROM not RAM.
It's not broken!