- z80 Assembling Issues
- 23 Feb 2017 10:00:00 pm
- Last edited by 123outerme on 23 Feb 2017 10:35:13 pm; edited 1 time in total
(Before you say it, yes I know I should use Spasm, and no it's not an issue with the compiler itself. I've used Brass quite successfully before)
EDIT: New modifications to the above statement:
(Before you say it, yes I know I should use Spasm, and yes it's an issue with the compiler itself. I've used Brass quite successfully before)
I'm attempting to assemble a relatively simple program (code below all this). When I do, it assembles just fine, but I can't seem to send it to WabbitEmu. For obvious reasons, I don't want to send it to my calc, and I've already checked the list file created for it, and nothing suspicious has come up. I would like to know, what am I doing wrong? I'm not asking about the program itself (I'm kinda expecting errors from this program, this is just the first thing I started working on. Please don't cringe too hard at my awful sloppy code ), but rather the issue with the file itself (which probably means that the problem is somewhere in the header).
Code:
Code:
EDIT: New modifications to the above statement:
(Before you say it, yes I know I should use Spasm, and yes it's an issue with the compiler itself. I've used Brass quite successfully before)
I'm attempting to assemble a relatively simple program (code below all this). When I do, it assembles just fine, but I can't seem to send it to WabbitEmu. For obvious reasons, I don't want to send it to my calc, and I've already checked the list file created for it, and nothing suspicious has come up. I would like to know, what am I doing wrong? I'm not asking about the program itself (I'm kinda expecting errors from this program, this is just the first thing I started working on. Please don't cringe too hard at my awful sloppy code ), but rather the issue with the file itself (which probably means that the problem is somewhere in the header).
Code:
Code:
.nolist
#include "ti83plus.inc"
.list
.org userMem - 2 ; userMem is in the equate file, and is $9D95.
.db t2ByteTok, tAsmCmp
;b_call(_RunIndicOff)
b_call(_ClrLCDFull)
ld HL, numVar
b_call(_DispHL)
KeyLoop:
b_call(_GetCSC)
cp skUp ; If the up arrow key was pressed.
JR Z, Increase
cp skDown ; If the down arrow key was pressed.
JR Z, Decrease
cp skClear ; If the CLEAR key was pressed.
JR Z, Finish
JR KeyLoop ; If any other key was pressed, or none, redo _GetCSC.
Increase:
ld A, H
cp 255
JR Z, KeyLoop
inc HL
ld (numVar), HL
JR PrintHL
Decrease:
ld A, H
cp 0
JR Z, KeyLoop
dec HL
ld (numVar), HL
PrintHL:
b_call(_ClrLCDFull)
b_call(_DispHL)
JR KeyLoop
Finish:
;b_call(_RunIndicOn)
b_call(_ClrLCDFull)
ret
numVar:
.db 0
.end