Subversion Repositories Spectranet

[/] [trunk/] [rom/] [progtrap.asm] - Diff between revs 399 and 540

Show entire file | Details | Blame | View Log

Rev 399 Rev 540
Line 52... Line 52...
        ldi                     ; call msb of comefrom address
        ldi                     ; call msb of comefrom address
 
 
        ; (hl) now points at the actual trap address. Note that OUTI
        ; (hl) now points at the actual trap address. Note that OUTI
        ; affects B so we have to reset it each time! B is pre-decremented.
        ; affects B so we have to reset it each time! B is pre-decremented.
        ld bc, TRAPSET          ; Set trap address I/O port
        ld bc, TRAPSET          ; Set trap address I/O port
 
        in a, (c)               ; this resets the address toggle in the CPLD
        inc b
        inc b
        outi                    ; set LSB of trap address
        outi                    ; set LSB of trap address
        inc b
        inc b
        outi                    ; set MSB of trap address
        outi                    ; set MSB of trap address