The following warnings occurred:
Warning [2] Undefined array key 0 - Line: 1677 - File: showthread.php PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/showthread.php 1677 errorHandler->error_callback
/showthread.php 916 buildtree




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: 1 Guest(s)