ADRESSE.TXT

From Atari Wiki
Revision as of 13:41, 16 December 2023 by Olivier.jan (talk | contribs)
Jump to navigation Jump to search
;
; Atari ST system addresses and macros for Mad Mac
;
; Atari ST hardware
;

memconf             = $ffff8001 ; memory controller
dbaseh              = $ffff8201
dbasel              = $ffff8203 ; display base low, high
vcounthi            = $ffff8205 ; display counter low, medium, high
vcountmid           = $ffff8207
vcountlow           = $ffff8209
syncmode            = $ffff820a ; video sync mode
color0              = $ffff8240 ; color registers 0..15
...
CURS_SETRATE        = 4
CURS_GETRATE        = 5

          .macro Cursconf func,op
          move.w \op,-(sp)
          move.w \func,-(sp)
          Xbios $15,6
          .endm

          .macro Settime datetime
          move.l \datetime,-(sp)
          Xbios $16,6
          .endm

          .macro Gettime
          Xbios $17,2
          .endm

          .macro Kbdvbase
          Xbios $22,2
          .endm

          .macro Vsync
          Xbios $24,2
          .endm

          .macro Supexec where
          move.l \where,-(sp)
          Xbios $26,6
          .endm

          .subttl 'Gemdos Traps'

          .macro Dsetdrv drive
          move.w \drive,-(sp)
          Gemdos $e,4
          .endm
...
          .TEXT
          .eject
          .list

Back to ASM_Tutorial