0 Members and 1 Guest are viewing this topic.
_WriteAByte: ld hl, 8478h ld (hl), b ld bc, 1_WriteFlashUnsafe: push af ld a, b or c jr z, loc_4CB7 pop af res 1, (iy+25h) push ix ld ix, WriteFlashUnsafeRun call sub_48C5 ; this function runs whatever IX is pointing to pop ix retloc_4CB7: pop af retWriteFlashUnsafeRun: .dw 7Ch and 7Fh out (6), a bit 7, h jr nz, loc_4CC7 set 1, (iy+25h)loc_4CC7: bit 1, (iy+25h) push hl jr nz, loc_4CE2 ld hl, 7FFFh or a sbc hl, de jr nc, loc_4CE2 in a, (6) inc a cp 7Eh jr z, loc_4CDF out (6), aloc_4CDF: ld de, 4000hloc_4CE2: pop hl in a, (6) push af ld a, 2 out (6), a ld a, 0AAh ld (loc_6AA8+2), a ld a, 1 out (6), a ld a, 55h ld (byte_5555), a ld a, 2 out (6), a ld a, 0A0h ld (loc_6AA8+2), a pop af out (6), a ldi dec de dec hlloc_4D08: ld a, (de) push af xor (hl) and 80h jr z, loc_4D1C pop af bit 5, a jr z, loc_4D08 ld a, (de) xor (hl) and 80h jr nz, loc_4D2E jr loc_4D1Dloc_4D1C: pop afloc_4D1D: inc de inc hl ld a, b or c jr nz, loc_4CC7 dec de ld a, 0F0h ld (de), a inc de ld a, 7Fh out (6), a xor a retloc_4D2E: ld a, 0F0h ld (de), a ld a, 7Fh out (6), a or a ret
EDIT 3: Issue solved! Basically TI sucks and one of their B_CALLs is buggy.