-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.asm
65 lines (55 loc) · 1.45 KB
/
main.asm
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
DEVICE ZXSPECTRUMNEXT
include "drivers/font.asm"
include "drivers/next.asm"
; DEFINE WIFI_DEBUG
; DEFINE EMU
; DEFINE PROXY
SLOT0_PAGE = 16
SLOT1_PAGE = 17
;; 0x0000 - 0x2000
MMU 0 1, SLOT0_PAGE
ORG #38
push af, bc, de, hl, ix
call Keyboard.update
pop ix, hl, de, bc, af
ei
ret
include "drivers/utils.asm"
include "drivers/keyboard.asm"
include "drivers/joystick.asm"
include "drivers/input.asm"
include "drivers/tile-driver.asm"
include "engine/engine.asm"
include "utils/limitedstring.asm"
include "player/index.asm"
include "screen-viewer/index.asm"
include "drivers/uart.asm"
include "drivers/wifi.asm"
include "drivers/proxy.asm"
; Render
include "render/index.asm"
; History data placed here
include "engine/history/model.asm"
DISPLAY "History ends: ", $
ORG #8000
Start:
nextreg 7, 3
ld sp, stack
nextreg Slot_0_Reg, SLOT0_PAGE
nextreg Slot_1_Reg, SLOT1_PAGE
call TextMode.init
call Wifi.init
jp History.home
include "engine/resident-parts.asm"
homePage db "1Home page",9, "data/index.gph", 9, "file", 9, "70",13,10,0
ds 255
stack = $ - 1
include "drivers/esxdos.asm"
include "utils/comparebuff.asm"
buffer:
DISPLAY "Page buffer ", $
ds 32,0
SAVENEX OPEN "browser.nex", Start, stack, 0 , 2
SAVENEX CORE 3,0,0 : SAVENEX CFG 0
SAVENEX AUTO : SAVENEX CLOSE
CSPECTMAP "cspect/test.map"