-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.asm
64 lines (55 loc) · 1.47 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
device zxspectrum128
org 24576
asmOrg:
jp start
; Generate version string
LUA ALLPASS
v = tostring(sj.get_define("V"))
maj = string.sub(v, 1,1)
min = string.sub(v, 2,2)
sj.insert_define("VERSION_STRING", "\"" .. maj .. "." .. min .. "\"")
ENDLUA
include "vdp/index.asm"
include "utils/index.asm"
include "gopher/render/index.asm"
include "dos/index.asm"
include "gopher/engine/history/index.asm"
include "gopher/engine/urlencoder.asm"
include "gopher/engine/fetcher.asm"
include "gopher/engine/media-processor.asm"
include "gopher/gopher.asm"
include "player/vortex-processor.asm"
include "screen/screen.asm"
include "drivers/index.asm"
start:
outputBuffer:
di
xor a : ld (#5c6a), a ; Thank you, Mario Prato, for feedback
ld (#5c00),a
ld sp, asmOrg
call Memory.init
xor a : out (#fe),a
ei
ld a, 7 : call Memory.setPage
;; Logo
ld hl, logo, b, Dos.FMODE_READ : call Dos.fopen
push af
ld hl, #c000, bc, 6912 : call Dos.fread
pop af
call Dos.fclose
ld b, 150
1 halt
djnz 1b
;; End of logo :-)
call TextMode.init
ld hl, initing : call TextMode.printZ
IFNDEF EMU
call Wifi.init
ENDIF
jp History.home
initing db "Initing Wifi...",13,0
logo db "data/logo.scr", 0
display "ENDS: ", $
display "Buff size", #ffff - $
save3dos "moon.bin", asmOrg, $ - asmOrg
; savebin "moon.bin", asmOrg, $ - asmOrg