forked from jbrandwood/teos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
teos.s
90 lines (66 loc) · 1.58 KB
/
teos.s
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
; ***************************************************************************
; ***************************************************************************
;
; teos.s
;
; A replacement Operating System for KRIKzz's Turbo Everdrive v2.
;
; Copyright John Brandwood 2019.
;
; Distributed under the Boost Software License, Version 1.0.
; (See accompanying file LICENSE_1_0.txt or copy at
; http://www.boost.org/LICENSE_1_0.txt)
;
; ***************************************************************************
; ***************************************************************************
;
;
;
REALHW = 1
SUPPORT_MOUSE = 1
HIRES = 1
;
; Inlude definitions for PC Engine assembly-language coding.
;
include "pceas.inc"
include "pcengine.inc"
include "ted2.inc"
PUTS macro
ldx #< \1
lda #> \1
jsr tos_print_msg
endm
;
;
;
list
mlist
ASCII_HI = $01
zp
view: ds 2
bss
org $22D0
data
code
; ***************************************************************************
; ***************************************************************************
;
;
;
WRAM_BANK = $05 ; Writable in TED2.
FRAG_BANK = $06 ; Writable in TED2.
BRAM_BANK = $20 ; 128KB allowed for MB128
SLOT_BANK = $30 ; 128KB allowed for MB128
; ***************************************************************************
; ***************************************************************************
;
;
;
include "teos_bank0.s"
include "teos_bank1.s"
include "teos_bank2.s"
include "teos_bank3.s"
if REALHW
else
include "fakesd.s"
endif