ADRESSE.TXT: Difference between revisions

From Atari Wiki
Jump to navigation Jump to search
(Olivier.jan moved page ADRESSE.TXT to ADRESSE.TXT/fr: Renaming for language version)
Tag: New redirect
 
(Replacing content of with translated version)
Tag: Removed redirect
Line 1: Line 1:
  +
{{Languages|ADDRESS.TXT}}
#REDIRECT [[ADRESSE.TXT/fr]]
 
  +
<pre>
  +
;
  +
; 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
  +
</pre>
  +
Back to [[ASM_Tutorial]]
  +
[[Category: ASSEMBLEUR 68000 sur ATARI ST Part 1 ]]

Revision as of 14:40, 16 December 2023

;
; 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