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

Subversion Repositories tv80

[/] [tv80/] [trunk/] [tests/] [bintr_crt0.asm] - Diff between revs 84 and 89

Show entire file | Details | Blame | View Log

Rev 84 Rev 89
Line 1... Line 1...
        ;; Generic crt0.s for a Z80
        ;; Generic crt0.s for a Z80
        .module bintr_crt0
        .module bintr_crt0
        .globl  _main
        .globl  _main
        .globl  _isr
        .globl  _isr
 
        .globl  _nmi_isr
 
 
        .area _HEADER (ABS)
        .area _HEADER (ABS)
        ;; Reset vector
        ;; Reset vector
        .org    0
        .org    0
        jp      init
        jp      init
Line 20... Line 21...
        reti
        reti
        .org    0x30
        .org    0x30
        reti
        reti
        .org    0x38
        .org    0x38
        di
        di
 
        push    af
        call _isr
        call _isr
 
        pop     af
        ei
        ei
        reti
        reti
 
 
 
        .org    0x66
 
        push    af
 
        call    _nmi_isr
 
        pop     af
 
        retn
 
 
        .org    0x100
        .org    0x100
init:
init:
        ;; Stack at the top of memory.
        ;; Stack at the top of memory.
        ld      sp,#0xffff
        ld      sp,#0xffff
 
 

powered by: WebSVN 2.1.0

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