summaryrefslogtreecommitdiff
path: root/global.inc
blob: fa7383e9cb382e4669555afb354e0b6f463a4ea8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
;; -*- asm -*-

	;; Register naming
esp	EQUR	a4
	;; a5 is pointer to base of opcode jump table
epc	EQUR	a6

	;; d0 is scratch generally used in macros
	;; d1 is scratch generally used outside macros
	;; d2 is scratch and up for grabs
eaf	EQUR	d3
ebc	EQUR	d4
ede	EQUR	d5
ehl	EQUR	d6
eixy	EQUR	d7

SAVEREG	MACRO
	movem.l	d3-d7/a3-a6,-(sp)
	ENDM

RESTREG	MACRO
	movem.l	(sp)+,d3-d7/a3-a6
	ENDM

	;; Size of the ‘jmp	do_interrupt’ in every invocation of
	;; START.
INT_OFFSET	SET	4