#35 crt0.s contains "illegal" opcode

closed-out-of-date
Michael Hope
gbdk-lib (10)
5
2001-11-05
2000-07-14
No
;; Clear from 0xFE00 to 0xFEFF
LD  HL,\#0xFEFF
LD  B,\#0x00

2$:
LD (HL-),A <--- illegal when HL points to 0xFE00~0xFEFF!
DEC B
JR NZ,2$

change to:

;; Clear from 0xFE00 to 0xFEFF
LD  HL,\#0xFEFF
LD  B,\#0x00

2$:
LD (HL),A
DEC L <-- H won't change, so DEC L, not DEC HL (extra boot-up speed :)
DEC B
JR NZ,2$

Discussion

  • Michael Hope
    Michael Hope
    2001-11-05

    Logged In: YES
    user_id=373

    This is a canned message in response to all of the pre 2.96 open
    bugs. Could you please try and reproduce this under 2.96? gbdk
    2.96 is available from the gbdk download page or from
    http://gbdk.sourceforge.net/staging.

     
  • Michael Hope
    Michael Hope
    2001-11-05

    • assigned_to: nobody --> michaelh
    • summary: crt0.s contains "illegal" opcode --> crt0.s contains "illegal" opcode
    • status: open --> closed-out-of-date