A85: Re: What am I doing wrong?
[Prev][Next][Index][Thread]
A85: Re: What am I doing wrong?
I think your problem lies here:
> door_table:
> ; .dw <door locat>,<new map start>
> ; .db <new cols>,<new X>,<new Y>
> .dw &overw+37 ;over world map
> .dw &dualhouseA
> .db 10,32,32
>
> .dw &overw+47
> .dw &houseA
> .db 5,32,32
>
In usgard, programs are not always run from the same location in memory
(like most other ti-xx assembly shells), so every time an '&' is used, an
offset byte (or possibly word) from the last '&' is inserted into the code.
This means that for each of these .dw's, there is actually 3 bytes used.
I'm not sure how this is affecting your code (as i didn't really look), but
that should get you on the right track. You may want to look through the
memory of this area of code to see exactly what is there.
-mike pearce
Follow-Ups:
References: