A83: A couple ASM questions
[Prev][Next][Index][Thread]
A83: A couple ASM questions
Just a few short questions here...first, I'm using TASM for compiling, but it
says that the .NOLIST command is invalid so I have to define EVERYTHING
myself. Needless to say I'd like to just include something since individual
definitions aren't going to save any space like it would in C++. Second,
here's a snip of code I'm getting an error on. It's telling me that on the jr
z,gohit line that "the range of the relative branch is exceeded".
movesnk:
ld a,(snakex)
ld b,a
ld a,(snakey)
ld c,a
ld d,3
call _IPoint
jr z,gohit
alright, last question. I'm trying to make an imbeded loop (well, sort of
loops) routine so I can draw an inversion box for a menu. However, it's
displaying my text and throwing itself in to an infinite loop before it even
starts loading pixels. My code is far too long to put in this E-mail and no
one would be able to understand it anyawy (it's pretty compex). So anyway,
the program sends the x and y values for the top-right of the menu box, then I
stores those in temp variables, adds the length to those and puts it in other
values to keep right x and down y. Then it adds to y and calls the x which
keeps incrimenting x until it hits the left boundary, each incriment it's
"SUPPOSED" to switch a point. After that, it incriments y, resets x left,
then runs y again until it hits bottom. If someone has a routine like this,
could you just e-mail it to Wizard4D@aol.com please? Thanks a lot.