aboutsummaryrefslogtreecommitdiff
path: root/player
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2021-04-17 22:15:38 +0100
committerJuan J. Martinez <jjm@usebox.net>2021-04-17 22:15:38 +0100
commit18996e0b910e72db4417b4c14f8f89c4a5f6ad5a (patch)
treec6e9011bf1550a4dfffc1412d4a8fb685d152c1f /player
parent87e04cc297636dc041d148c84280eb31a82d9433 (diff)
downloadbeeper-int-zx-18996e0b910e72db4417b4c14f8f89c4a5f6ad5a.tar.gz
beeper-int-zx-18996e0b910e72db4417b4c14f8f89c4a5f6ad5a.zip
Formatting
Diffstat (limited to 'player')
-rw-r--r--player/player.z8078
1 files changed, 39 insertions, 39 deletions
diff --git a/player/player.z80 b/player/player.z80
index d6fed1a..9b23723 100644
--- a/player/player.z80
+++ b/player/player.z80
@@ -6,49 +6,49 @@ ISR_TABLE_START_JP = 0xfdfd
EFX_TABLE_ADDR = 32000
EFX_IN_ADDR = EFX_TABLE_ADDR - 1
-.area _HOME
-.area _CODE
-.area _INITIALIZER
+.area _HOME
+.area _CODE
+.area _INITIALIZER
.area _GSINIT
.area _GSFINAL
-.area _DATA
-.area _INITIALIZED
-.area _BSEG
+.area _DATA
+.area _INITIALIZED
+.area _BSEG
.area _BSS
.area _HEAP
.area _CODE
_main::
- di
- ld sp, #0
- ei
+ di
+ ld sp, #0
+ ei
ld hl, #EFX_TABLE_ADDR
ld (sfx_data), hl
ld hl, #ISR_TABLE_START
- ld (hl), #ISR_TABLE_VALUE
+ ld (hl), #ISR_TABLE_VALUE
ld e, l
ld d, h
- inc de
- ld bc, #257
- ldir
-
- ld a, #ISR_TABLE_START_LO
- ld i, a
- im 2
-
- ld hl, #ISR_TABLE_START_JP
- ld de, #isr
- ld a, #0xc3
- ld (hl), a
- inc hl
- ld (hl), e
- inc hl
- ld (hl), d
- ei
+ inc de
+ ld bc, #257
+ ldir
+
+ ld a, #ISR_TABLE_START_LO
+ ld i, a
+ im 2
+
+ ld hl, #ISR_TABLE_START_JP
+ ld de, #isr
+ ld a, #0xc3
+ ld (hl), a
+ inc hl
+ ld (hl), e
+ inc hl
+ ld (hl), d
+ ei
ld a, (EFX_IN_ADDR)
ld l, a
@@ -70,22 +70,22 @@ wait::
halt
isr:
- ex af,af
- push hl
+ ex af,af
+ push hl
push ix
- push iy
- push bc
- push de
+ push iy
+ push bc
+ push de
call _beeper_play
- pop de
- pop bc
- pop iy
- pop ix
- pop hl
- ex af,af
- ei
+ pop de
+ pop bc
+ pop iy
+ pop ix
+ pop hl
+ ex af,af
+ ei
ret