OpenCores
URL https://opencores.org/ocsvn/y80e/y80e/trunk

Subversion Repositories y80e

[/] [y80e/] [trunk/] [asm/] [int_ops.s] - Diff between revs 2 and 6

Only display areas with differences | Details | Blame | View Log

Rev 2 Rev 6
;**********************************************************************************
;**********************************************************************************
;*                                                                                *
;*                                                                                *
;* checks interrupt options and conditions                                        *
;* checks interrupt options and conditions                                        *
;*                                                                                *
;*                                                                                *
;**********************************************************************************
;**********************************************************************************
        aseg
        aseg
 
 
        org     00h
        org     00h
        jp      (hl)
        jp      (hl)
 
 
        org     38h
        org     38h
        inc     bc
        inc     bc
        exx
        exx
        inc     hl
        inc     hl
        ld      (hl), l ;write a marker
        ld      (hl), l ;write a marker
        exx
        exx
        jp      (hl)
        jp      (hl)
 
 
        org     66h
        org     66h
        inc     bc
        inc     bc
        inc     ix
        inc     ix
        ld      (ix+0), c        ;write a marker
        ld      (ix+0), c        ;write a marker
        jp      (hl)
        jp      (hl)
 
 
        org     0c0h            ;pattern finish location
        org     0c0h            ;pattern finish location
        nop
        nop
        jr      0c0h
        jr      0c0h
 
 
        org     0100h
        org     0100h
        ex      af,af'
        ex      af,af'
        xor     a
        xor     a
        dec     a
        dec     a
        ex      af,af'
        ex      af,af'
        exx
        exx
        ld      bc, 0edb7h
        ld      bc, 0edb7h
        ld      de, 08421h
        ld      de, 08421h
        ld      hl, 03cc3h
        ld      hl, 03cc3h
        exx
        exx
        xor     a
        xor     a
        ld      bc, 00001h
        ld      bc, 00001h
        ld      de, 00100h
        ld      de, 00100h
        ld      hl, 01000h
        ld      hl, 01000h
        ld      ix, 09669h
        ld      ix, 09669h
        ld      iy, 0bffeh
        ld      iy, 0bffeh
        jp      (hl)            ;1000h
        jp      (hl)            ;1000h
 
 
        org     1000h
        org     1000h
        push    bc              ;0001h @ fffeh
        push    bc              ;0001h @ fffeh
        add     hl, de
        add     hl, de
        add     iy, de
        add     iy, de
        jp      (iy)            ;c0feh
        jp      (iy)            ;c0feh
 
 
        org     1100h
        org     1100h
        inc     bc              ;compensate for mode 0
        inc     bc              ;compensate for mode 0
        push    bc              ;0002h @ fffah
        push    bc              ;0002h @ fffah
        im      2
        im      2
        add     hl, de
        add     hl, de
        im      1               ;toggles back okay
        im      1               ;toggles back okay
        add     iy, de
        add     iy, de
        ei
        ei
        jp      (iy)            ;c1feh
        jp      (iy)            ;c1feh
 
 
        org     1200h
        org     1200h
        push    bc              ;0003h @ fff6h
        push    bc              ;0003h @ fff6h
        add     hl, de
        add     hl, de
        add     iy, de
        add     iy, de
        ei
        ei
        jp      (iy)            ;c2feh
        jp      (iy)            ;c2feh
 
 
        org     1300h
        org     1300h
        push    bc              ;0004h @ fff2h
        push    bc              ;0004h @ fff2h
        add     hl, de
        add     hl, de
        add     iy, de
        add     iy, de
        ei
        ei
        jp      (iy)            ;c3feh
        jp      (iy)            ;c3feh
 
 
        org     1400h
        org     1400h
        push    bc              ;0005h @ ffeeh
        push    bc              ;0005h @ ffeeh
        add     hl, de
        add     hl, de
        add     iy, de
        add     iy, de
        ei
        ei
        jp      (iy)            ;c4feh
        jp      (iy)            ;c4feh
 
 
        org     1500h
        org     1500h
        push    bc              ;0006h @ ffeah
        push    bc              ;0006h @ ffeah
        add     hl, de
        add     hl, de
        add     iy, de
        add     iy, de
        ei
        ei
        jp      (iy)            ;c5feh
        jp      (iy)            ;c5feh
 
 
        org     1600h
        org     1600h
        push    bc              ;0007h @ ffe6h
        push    bc              ;0007h @ ffe6h
        add     hl, de
        add     hl, de
        add     iy, de
        add     iy, de
        ei
        ei
        jp      (iy)            ;c6feh
        jp      (iy)            ;c6feh
 
 
        org     1700h
        org     1700h
        push    bc              ;0008h @ ffe2h
        push    bc              ;0008h @ ffe2h
        add     hl, de
        add     hl, de
        add     iy, de
        add     iy, de
        ei
        ei
        jp      (iy)            ;c7feh
        jp      (iy)            ;c7feh
 
 
        org     1800h
        org     1800h
        push    bc              ;0009h @ ffdeh
        push    bc              ;0009h @ ffdeh
        add     hl, de
        add     hl, de
        add     iy, de
        add     iy, de
        ei
        ei
        jp      (iy)            ;c8feh
        jp      (iy)            ;c8feh
 
 
        org     1900h
        org     1900h
        push    bc              ;000ah @ ffdah
        push    bc              ;000ah @ ffdah
        add     hl, de
        add     hl, de
        add     iy, de
        add     iy, de
        ei
        ei
        jp      (iy)            ;c9feh
        jp      (iy)            ;c9feh
 
 
        org     1a00h
        org     1a00h
        push    bc              ;000bh @ ffd6h
        push    bc              ;000bh @ ffd6h
        add     hl, de
        add     hl, de
        add     iy, de
        add     iy, de
        ei
        ei
        jp      (iy)            ;cafeh
        jp      (iy)            ;cafeh
 
 
        org     1b00h
        org     1b00h
        push    bc              ;000ch @ ffd2h
        push    bc              ;000ch @ ffd2h
        add     hl, de
        add     hl, de
        add     iy, de
        add     iy, de
        ei
        ei
        jp      (iy)            ;cbfeh
        jp      (iy)            ;cbfeh
 
 
        org     1c00h
        org     1c00h
        push    bc              ;000dh @ ffceh
        push    bc              ;000dh @ ffceh
        inc     bc              ;compensate for cpir
        inc     bc              ;compensate for cpir
        add     hl, de
        add     hl, de
        add     iy, de
        add     iy, de
        ei
        ei
        jp      (iy)            ;ccfeh
        jp      (iy)            ;ccfeh
 
 
        org     1d00h
        org     1d00h
        db      0ffh            ;cpir no match data
        db      0ffh            ;cpir no match data
        push    bc              ;000eh @ ffcah
        push    bc              ;000eh @ ffcah
        inc     bc              ;compensate for cpir
        inc     bc              ;compensate for cpir
        dec     hl              ;compensate for cpir
        dec     hl              ;compensate for cpir
        add     hl, de
        add     hl, de
        add     iy, de
        add     iy, de
        ei
        ei
        jp      (iy)            ;cdfeh
        jp      (iy)            ;cdfeh
 
 
        org     1e00h
        org     1e00h
        db      00h             ;cpir match data
        db      00h             ;cpir match data
        push    bc              ;000fh @ ffc6h
        push    bc              ;000fh @ ffc6h
        dec     hl              ;compensate for cpir
        dec     hl              ;compensate for cpir
        add     hl, de
        add     hl, de
        add     iy, de
        add     iy, de
        jp      (iy)            ;cefeh
        jp      (iy)            ;cefeh
 
 
        org     1f00h
        org     1f00h
        push    bc              ;0010h @ ffc2h
        push    bc              ;0010h @ ffc2h
        add     hl, de
        add     hl, de
        add     iy, de
        add     iy, de
        jp      (iy)            ;cffeh
        jp      (iy)            ;cffeh
 
 
        org     2000h
        org     2000h
        push    bc              ;0011h @ ffbeh
        push    bc              ;0011h @ ffbeh
        add     hl, de
        add     hl, de
        add     iy, de
        add     iy, de
        im      0                ;no effect
        im      0                ;no effect
        ei
        ei
        jp      (iy)            ;d0feh
        jp      (iy)            ;d0feh
 
 
        org     2100h
        org     2100h
        inc     bc              ;compensate for im 0 address
        inc     bc              ;compensate for im 0 address
        push    bc              ;0012h @ ffbah
        push    bc              ;0012h @ ffbah
        add     hl, de
        add     hl, de
        add     iy, de
        add     iy, de
        ei
        ei
        jp      (iy)            ;d1feh
        jp      (iy)            ;d1feh
 
 
        org     2200h
        org     2200h
        push    bc              ;0013h @ ffb6h
        push    bc              ;0013h @ ffb6h
        add     hl, de
        add     hl, de
        add     iy, de
        add     iy, de
        ld      a, i
        ld      a, i
        push    af              ;0044h @ ffb4h
        push    af              ;0044h @ ffb4h
        ld      sp, 02250h
        ld      sp, 02250h
        retn                    ;2230h @ 2250h read
        retn                    ;2230h @ 2250h read
        halt                    ;not executed
        halt                    ;not executed
 
 
        org     2230h
        org     2230h
        ld      a, i
        ld      a, i
        ld      sp, 0ffb4h
        ld      sp, 0ffb4h
        push    af              ;0044h @ ffb2h
        push    af              ;0044h @ ffb2h
        ld      a, 055h
        ld      a, 055h
        ld      i, a
        ld      i, a
        im      2
        im      2
        jp      (iy)            ;d2feh
        jp      (iy)            ;d2feh
 
 
        org     2250h
        org     2250h
        dw      02230h  ;data for retn
        dw      02230h  ;data for retn
 
 
        org     2300h
        org     2300h
        inc     bc
        inc     bc
        push    bc              ;0014h @ ffaeh
        push    bc              ;0014h @ ffaeh
        add     hl, de
        add     hl, de
        add     iy, de
        add     iy, de
        ld      a, i
        ld      a, i
        push    af              ;5500h @ ffach
        push    af              ;5500h @ ffach
        ld      sp, 02350h
        ld      sp, 02350h
        reti                    ;2330h @ 2350h read
        reti                    ;2330h @ 2350h read
        halt                    ;not executed
        halt                    ;not executed
 
 
        org     2330h
        org     2330h
        ld      a, i
        ld      a, i
        ld      sp, 0ffach
        ld      sp, 0ffach
        im      0                ;no effect
        im      0                ;no effect
        push    af              ;5500h @ ffaah
        push    af              ;5500h @ ffaah
        ei
        ei
        ld      iy, 0d310h
        ld      iy, 0d310h
        jp      (iy)            ;d310h
        jp      (iy)            ;d310h
 
 
        org     2350h
        org     2350h
        dw      02330h  ;data for reti
        dw      02330h  ;data for reti
 
 
        org     2400h
        org     2400h
        push    bc              ;0015h @ ffa6h
        push    bc              ;0015h @ ffa6h
        add     hl, de
        add     hl, de
        add     iy, de
        add     iy, de
        ld      sp, 02450h
        ld      sp, 02450h
        retn                    ;2430h @ 2450h read
        retn                    ;2430h @ 2450h read
        halt                    ;not executed
        halt                    ;not executed
 
 
        org     2430h
        org     2430h
        ld      sp, 0ffa6h
        ld      sp, 0ffa6h
        jp      (iy)            ;d410h
        jp      (iy)            ;d410h
 
 
        org     2450h
        org     2450h
        dw      02430h  ;data for retn
        dw      02430h  ;data for retn
 
 
        org     2500h
        org     2500h
        inc     bc              ;compensate for mode 0
        inc     bc              ;compensate for mode 0
        push    bc              ;0016h @ ffa2h
        push    bc              ;0016h @ ffa2h
        add     hl, de
        add     hl, de
        add     iy, de
        add     iy, de
        ld      sp, 02550h
        ld      sp, 02550h
        retn                    ;2530h @ 2550h read
        retn                    ;2530h @ 2550h read
        halt                    ;not executed
        halt                    ;not executed
 
 
        org     2530h
        org     2530h
        ld      sp, 0ffa2h
        ld      sp, 0ffa2h
        jp      (iy)            ;d510h
        jp      (iy)            ;d510h
 
 
        org     2550h
        org     2550h
        dw      02530h  ;data for retn
        dw      02530h  ;data for retn
 
 
 
 
        org     2600h
        org     2600h
        push    bc              ;0017h @ ff9eh
        push    bc              ;0017h @ ff9eh
        push    de              ;0100h @ ff9eh
        push    de              ;0100h @ ff9eh
        push    hl              ;2600h @ ff9ch
        push    hl              ;2600h @ ff9ch
        push    af              ;5500h @ ff98h
        push    af              ;5500h @ ff98h
        im      1
        im      1
        ld      hl, 2700h
        ld      hl, 2700h
        ld      iy, 0d6feh
        ld      iy, 0d6feh
        ei
        ei
        jp      (iy)            ;d6feh
        jp      (iy)            ;d6feh
 
 
        org     2700h
        org     2700h
        push    bc              ;0018h @ ff94h
        push    bc              ;0018h @ ff94h
        push    de              ;0100h @ ff92h
        push    de              ;0100h @ ff92h
        push    hl              ;2700h @ ff90h
        push    hl              ;2700h @ ff90h
        push    af              ;4204h @ ff8eh
        push    af              ;4204h @ ff8eh
        ld      hl, 2800h
        ld      hl, 2800h
        ld      iy, 0d7feh
        ld      iy, 0d7feh
        ei
        ei
        jp      (iy)            ;d7feh
        jp      (iy)            ;d7feh
 
 
        org     2800h
        org     2800h
        push    bc              ;0019h @ ff8ah
        push    bc              ;0019h @ ff8ah
        push    de              ;0100h @ ff88h
        push    de              ;0100h @ ff88h
        push    hl              ;2800h @ ff86h
        push    hl              ;2800h @ ff86h
        push    af              ;6a04h @ ff84h
        push    af              ;6a04h @ ff84h
        ld      hl, 2900h
        ld      hl, 2900h
        ld      iy, 0d8feh
        ld      iy, 0d8feh
        ei
        ei
        jp      (iy)            ;d8feh
        jp      (iy)            ;d8feh
 
 
        org     2900h
        org     2900h
        push    bc              ;001ah @ ff80h
        push    bc              ;001ah @ ff80h
        push    de              ;0100h @ ff7eh
        push    de              ;0100h @ ff7eh
        push    hl              ;2900h @ ff7ch
        push    hl              ;2900h @ ff7ch
        push    af              ;9394h @ ff7ah
        push    af              ;9394h @ ff7ah
        ld      hl, 2a00h
        ld      hl, 2a00h
        ld      iy, 0d9feh
        ld      iy, 0d9feh
        ei
        ei
        jp      (iy)            ;d9feh
        jp      (iy)            ;d9feh
 
 
        org     2a00h
        org     2a00h
        push    bc              ;001bh @ ff76h
        push    bc              ;001bh @ ff76h
        push    de              ;0100h @ ff74h
        push    de              ;0100h @ ff74h
        push    hl              ;2a00h @ ff72h
        push    hl              ;2a00h @ ff72h
        push    af              ;6916h @ ff70h
        push    af              ;6916h @ ff70h
        ld      hl, 1580h
        ld      hl, 1580h
        ld      iy, 0dafeh
        ld      iy, 0dafeh
        ei
        ei
        jp      (iy)            ;dafeh
        jp      (iy)            ;dafeh
 
 
        org     2b00h
        org     2b00h
        push    bc              ;001ch @ ff6ch
        push    bc              ;001ch @ ff6ch
        push    de              ;0100h @ ff6ah
        push    de              ;0100h @ ff6ah
        push    hl              ;2b00h @ ff68h
        push    hl              ;2b00h @ ff68h
        push    af              ;6900h @ ff66h
        push    af              ;6900h @ ff66h
        ld      hl, 1600h
        ld      hl, 1600h
        ld      iy, 0dbfeh
        ld      iy, 0dbfeh
        ei
        ei
        jp      (iy)            ;dbfeh
        jp      (iy)            ;dbfeh
 
 
        org     2c00h
        org     2c00h
        push    bc              ;001dh @ ff62h
        push    bc              ;001dh @ ff62h
        push    de              ;0100h @ ff60h
        push    de              ;0100h @ ff60h
        push    hl              ;2c00h @ ff5eh
        push    hl              ;2c00h @ ff5eh
        push    af              ;6900h @ ff5ch
        push    af              ;6900h @ ff5ch
        ld      hl, 2d01h
        ld      hl, 2d01h
        ld      iy, 0dcfeh
        ld      iy, 0dcfeh
        ei
        ei
        jp      (iy)            ;dcfeh
        jp      (iy)            ;dcfeh
 
 
        org     2d00h
        org     2d00h
        push    bc              ;001eh @ ff58h
        push    bc              ;001eh @ ff58h
        push    de              ;0100h @ ff56h
        push    de              ;0100h @ ff56h
        push    hl              ;2d00h @ ff54h
        push    hl              ;2d00h @ ff54h
        push    af              ;6900h @ ff52h
        push    af              ;6900h @ ff52h
        ld      hl, 2e01h
        ld      hl, 2e01h
        ld      iy, 0ddfeh
        ld      iy, 0ddfeh
        ei
        ei
        jp      (iy)            ;ddfeh
        jp      (iy)            ;ddfeh
 
 
        org     2e00h
        org     2e00h
        push    bc              ;001fh @ ff4eh
        push    bc              ;001fh @ ff4eh
        push    de              ;0100h @ ff4ch
        push    de              ;0100h @ ff4ch
        push    hl              ;2e00h @ ff4ah
        push    hl              ;2e00h @ ff4ah
        push    af              ;6900h @ ff48h
        push    af              ;6900h @ ff48h
        ld      sp, 02e50h
        ld      sp, 02e50h
        retn                    ;2e30h @ 2e50h read
        retn                    ;2e30h @ 2e50h read
        halt                    ;not executed
        halt                    ;not executed
 
 
        org     2e30h
        org     2e30h
        ld      sp, 0ff48h
        ld      sp, 0ff48h
        ld      iy, 0d610h
        ld      iy, 0d610h
        jp      (iy)            ;d610h
        jp      (iy)            ;d610h
 
 
        org     2e50h
        org     2e50h
        dw      02e30h
        dw      02e30h
 
 
        org     4ce3h
        org     4ce3h
        db      05ah
        db      05ah
 
 
        org     5564h
        org     5564h
        dw      02300h
        dw      02300h
 
 
        org     0c0feh
        org     0c0feh
        dec     hl              ;int next
        dec     hl              ;int next
        inc     hl
        inc     hl
        ei
        ei
        nop                     ;c101h @ fffch with busreq
        nop                     ;c101h @ fffch with busreq
        jp      nc, 5000h       ;c102h @ fffch
        jp      nc, 5000h       ;c102h @ fffch
        halt                    ;not executed
        halt                    ;not executed
 
 
        org     0c1feh
        org     0c1feh
        nop                     ;nmi next
        nop                     ;nmi next
        jp      c, 5000h        ;c202h @ fff8h
        jp      c, 5000h        ;c202h @ fff8h
        halt                    ;not executed
        halt                    ;not executed
 
 
        org     0c2feh
        org     0c2feh
        nop                     ;int next
        nop                     ;int next
        jp      nc, 5000h       ;5000h @ fff4h
        jp      nc, 5000h       ;5000h @ fff4h
        halt                    ;not executed
        halt                    ;not executed
 
 
        org     0c3feh
        org     0c3feh
        nop                     ;nmi next
        nop                     ;nmi next
        jp      nc, 5000h       ;5000h @ fff0h
        jp      nc, 5000h       ;5000h @ fff0h
        halt                    ;not executed
        halt                    ;not executed
 
 
        org     0c4feh
        org     0c4feh
        nop                     ;int next
        nop                     ;int next
        jr      c, 0c4feh       ;c501h @ ffech
        jr      c, 0c4feh       ;c501h @ ffech
        halt                    ;not executed
        halt                    ;not executed
 
 
        org     0c5feh
        org     0c5feh
        nop                     ;nmi next
        nop                     ;nmi next
        jr      c, 0c5feh       ;c601h @ ffe8h
        jr      c, 0c5feh       ;c601h @ ffe8h
        halt                    ;not executed
        halt                    ;not executed
 
 
        org     0c6feh
        org     0c6feh
        nop                     ;int next
        nop                     ;int next
        jr      nc, 0c6feh      ;c6feh @ ffe4h
        jr      nc, 0c6feh      ;c6feh @ ffe4h
        halt                    ;not executed
        halt                    ;not executed
 
 
        org     0c7feh
        org     0c7feh
        nop                     ;nmi next
        nop                     ;nmi next
        jr      nc, 0c7feh      ;c7feh @ ffe0h
        jr      nc, 0c7feh      ;c7feh @ ffe0h
        halt                    ;not executed
        halt                    ;not executed
 
 
        org     0c8feh
        org     0c8feh
        halt                    ;int next
        halt                    ;int next
        rst     28h             ;c8ffh @ ffdch
        rst     28h             ;c8ffh @ ffdch
 
 
        org     0c9feh
        org     0c9feh
        halt                    ;nmi next
        halt                    ;nmi next
        rst     28h             ;c9ffh @ ffd8h
        rst     28h             ;c9ffh @ ffd8h
        jp      5000h           ;not executed
        jp      5000h           ;not executed
 
 
        org     0cafeh
        org     0cafeh
        nop                     ;int next
        nop                     ;int next
        halt                    ;cb00h @ ffd4h
        halt                    ;cb00h @ ffd4h
        jp      5000h           ;not executed
        jp      5000h           ;not executed
 
 
        org     0cbfeh
        org     0cbfeh
        nop                     ;nmi next
        nop                     ;nmi next
        halt                    ;cc00h @ ffd0h
        halt                    ;cc00h @ ffd0h
        jp      5000h           ;not executed
        jp      5000h           ;not executed
 
 
        org     0ccfeh
        org     0ccfeh
        nop                     ;int next
        nop                     ;int next
        cpir                    ;ccffh @ ffcch
        cpir                    ;ccffh @ ffcch
        rst     08h             ;not executed
        rst     08h             ;not executed
 
 
        org     0cdfeh
        org     0cdfeh
        nop                     ;nmi next
        nop                     ;nmi next
        cpir                    ;ce01h @ ffc8h
        cpir                    ;ce01h @ ffc8h
        rst     10h             ;not executed
        rst     10h             ;not executed
 
 
        org     0cefeh
        org     0cefeh
        nop                     ;int next
        nop                     ;int next
        ei                      ;cf00h @ ffc4h with busreq
        ei                      ;cf00h @ ffc4h with busreq
        nop                     ;cf01h @ ffc4h
        nop                     ;cf01h @ ffc4h
        rst     18h             ;not executed
        rst     18h             ;not executed
 
 
        org     0cffeh
        org     0cffeh
        nop                     ;nmi next
        nop                     ;nmi next
        di                      ;d001h @ ffc0h
        di                      ;d001h @ ffc0h
        nop
        nop
        rst     28h             ;not executed
        rst     28h             ;not executed
 
 
        org     0d0feh
        org     0d0feh
        nop                     ;int next
        nop                     ;int next
        di                      ;d101h @ ffbch
        di                      ;d101h @ ffbch
        dec     hl
        dec     hl
        inc     hl
        inc     hl
        ei
        ei
        nop                     ;d103h @ ffbch with busreq
        nop                     ;d103h @ ffbch with busreq
        rst     30h             ;not executed
        rst     30h             ;not executed
 
 
        org     0d1feh
        org     0d1feh
        dec     hl              ;nmi next
        dec     hl              ;nmi next
        inc     hl              ;d200h @ ffb8h
        inc     hl              ;d200h @ ffb8h
        rst     28h             ;not executed
        rst     28h             ;not executed
 
 
        org     0d2feh
        org     0d2feh
        dec     hl              ;int next
        dec     hl              ;int next
        inc     hl              ;d300h @ ffb0h
        inc     hl              ;d300h @ ffb0h
        db      064h            ;2300h @ 5564h read - mode 2
        db      064h            ;2300h @ 5564h read - mode 2
 
 
        org     0d310h
        org     0d310h
        halt                    ;nmi next
        halt                    ;nmi next
        rst     30h             ;d311h @ ffa8h
        rst     30h             ;d311h @ ffa8h
 
 
        org     0d410h
        org     0d410h
        nop                     ;int next
        nop                     ;int next
        halt                    ;d412h @ ffa4h
        halt                    ;d412h @ ffa4h
        jp      5000h           ;not executed
        jp      5000h           ;not executed
 
 
        org     0d510h
        org     0d510h
        nop                     ;int next
        nop                     ;int next
        halt                    ;d512h @ ffa0h
        halt                    ;d512h @ ffa0h
        jp      5000h           ;not executed
        jp      5000h           ;not executed
 
 
        org     0d610h
        org     0d610h
        xor     a
        xor     a
        ld      a, 04ch
        ld      a, 04ch
        in      a, (0e3h)       ;  5ah @ 4ce3h
        in      a, (0e3h)       ;  5ah @ 4ce3h
        push    af              ;5a44h @ ff46h
        push    af              ;5a44h @ ff46h
        out     (3ch), a        ;  5ah @ 5a3ch
        out     (3ch), a        ;  5ah @ 5a3ch
        push    af
        push    af
        push    bc
        push    bc
        push    de
        push    de
        push    hl
        push    hl
        push    ix
        push    ix
        push    iy
        push    iy
        ex      af,af'
        ex      af,af'
        push    af
        push    af
        ex      af,af'
        ex      af,af'
        exx
        exx
        push    bc
        push    bc
        push    de
        push    de
        push    hl
        push    hl
        exx
        exx
 
 
 
        di
 
        nop
 
        slp
 
        nop
 
 
 
        ld      hl,0d740h
 
        ei                      ;int next
 
        slp                     ;d633h @ ff30h
 
        rst     00h             ;not executed
 
 
 
        org     0d640h
 
        di
        ld      hl, 0100h
        ld      hl, 0100h
        jp 0c0h
        jp 0c0h
 
 
        org     0d6feh
        org     0d6feh
        nop                     ;int next
        nop                     ;int next
        xor     c               ;d700 @ ff96h
        xor     c               ;d700 @ ff96h
 
 
 
        org     0d740h
 
        di
 
        ld      hl,0d640h
 
        nop                     ;nmi next
 
        slp                     ;d747h @ ff2eh
 
        rst     00h
 
 
        org     0d7feh
        org     0d7feh
        nop                     ;nmi next
        nop                     ;nmi next
        xor     h               ;d800 @ ff8ch
        xor     h               ;d800 @ ff8ch
        nop
        nop
 
 
        org     0d8feh
        org     0d8feh
        nop                     ;int next
        nop                     ;int next
        adc     h               ;d900 @ ff82h
        adc     a,h             ;d900 @ ff82h
        nop
        nop
 
 
        org     0d9feh
        org     0d9feh
        nop                     ;nmi next
        nop                     ;nmi next
        sbc     h               ;da00 @ ff78h
        sbc     a,h             ;da00 @ ff78h
        nop
        nop
 
 
        org     0dafeh
        org     0dafeh
        nop                     ;int next
        nop                     ;int next
        adc     hl, hl  ;db00 @ ff6eh
        adc     hl, hl  ;db00 @ ff6eh
        nop
        nop
 
 
        org     0dbfeh
        org     0dbfeh
        nop                     ;nmi next
        nop                     ;nmi next
        adc     hl, hl  ;dc00 @ ff64h
        adc     hl, hl  ;dc00 @ ff64h
        nop
        nop
 
 
        org     0dcfeh
        org     0dcfeh
        nop                     ;int next
        nop                     ;int next
        dec     hl              ;dd00 @ ff5ah
        dec     hl              ;dd00 @ ff5ah
        nop
        nop
 
 
        org     0ddfeh
        org     0ddfeh
        nop                     ;nmi next
        nop                     ;nmi next
        dec     hl              ;de00 @ ff50h
        dec     hl              ;de00 @ ff50h
        nop
        nop
 
 
 No newline at end of file
 No newline at end of file
 
        end
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.