Subversion Repositories Spectranet

[/] [branches/] [gnubinutils/] [modules/] [snapman/] [vectors.asm] - Diff between revs 371 and 372

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 371 Rev 372
Line 19... Line 19...
;LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
;LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
;OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
;OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
;THE SOFTWARE.
;THE SOFTWARE.
 
 
; Snapshot manager extensions vector table
; Snapshot manager extensions vector table
 
.include        "snapheader.inc"
 
.text
 
.vectorstart:
        defb 0xAA               ; This is a code ROM
        defb 0xAA               ; This is a code ROM
        defb 0xFB               ; ROM ID = 0xFC
        defb 0xFB               ; ROM ID = 0xFC
        defw F_init             ; RESET vector
        defw F_init             ; RESET vector
        defw 0xFFFF             ; the next few vectors are reserved
        defw 0xFFFF             ; the next few vectors are reserved
        defw 0xFFFF
        defw 0xFFFF
        defw 0xFFFF
        defw 0xFFFF
        defw 0xFFFF
        defw 0xFFFF
        defw 0xFFFF
        defw 0xFFFF
        defw STR_ident          ; Pointer to a string that identifies this mod
        defw STR_ident          ; Pointer to a string that identifies this mod
        jp F_modulecall
        jp F_modulecall
        block 0x2020-$,0xFF
.fillstart:
 
        .fill 0x20-(.fillstart-.vectorstart), 1, 0xFF
 
 
;-----------------------------------------------------------------------
;-----------------------------------------------------------------------
; F_im2 - Detect interrupt mode 2 ISR
; F_im2 - Detect interrupt mode 2 ISR
F_im2
.globl F_im2
 
.globl F_im2_lsb
 
F_im2_lsb       equ 0x20
 
F_im2:
        push af
        push af
        ld a, 2
        ld a, 2
        ld (SNA_IM), a
        ld (SNA_IM), a
        pop af
        pop af
        reti
        reti
 
 
F_modulecall
.globl F_modulecall
 
F_modulecall:
        ld a, l
        ld a, l
        and a                   ; call 0 = start UI
        and a                   ; call 0 = start UI
        jp z, F_startui
        jp z, F_startui
        cp 1
        cp 1
        jp z, F_loadsnap_modcall
        jp z, F_loadsnap_modcall