Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Best way to put UDG in my program ?
#7
ivanb303 Wrote:
Code:
ASM

LD HL, 65368
LD DE, DATA
LD B,56      <-- I have 7 characters
LOOP:
LD A,(DATA)
LD (HL),A
INC HL
INC DE
DEC B
JR NZ,LOOP
DATA:
DEFB udg 1      ; <--- LOOK OUT
DEFB udg 2
etcc...

END ASM
That code is ok... except that once the loop is finished de CPU will run into your DEFB udg 1 and will execute those bytes as if they were assembler instructions.
You should jump somewhere else, RETurn or something.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)