Skip to content

Commit dd1e0b5

Browse files
author
Cheveron
committed
left BDOS handler as a stub for now
1 parent e9011e3 commit dd1e0b5

File tree

4 files changed

+23
-17
lines changed

4 files changed

+23
-17
lines changed

ChloeVM.app/Contents/Resources/se.rom

0 Bytes
Binary file not shown.

basic/modules/01_restarts.asm

+23-12
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@
1414
; // You should have received a copy of the GNU General Public License
1515
; // along with SE Basic IV. If not, see <http://www.gnu.org/licenses/>.
1616

17-
org $0000;
18-
;;
19-
; // --- RESTART ROUTINES ----------------------------------------------------
20-
;;
21-
2217
;;
2318
; Short description of module.
2419
; @author Name of contributing author.
@@ -30,16 +25,34 @@
3025
; @throws Error number and description handled by RST 8 routine.
3126
; @version Version in which the module was last udpated.
3227
;;
28+
29+
;;
30+
; // --- RESTART ROUTINES ----------------------------------------------------
31+
;;
32+
33+
org $0000;
34+
;;
35+
; cold start
36+
;;
3337
rst_00:
3438
di; // interrupts off
39+
40+
; // PC = $0001 is trapped by the divMMC hardware and the OS ROM paged in.
41+
; // Regardless of whether the BOOT or BASIC ROM is paged in, control is
42+
; // returned here. As a result, BC is set to HOME bank paging ($7ffd).
43+
3544
xor a; // LD A, 0
36-
; ld bc, paging; // HOME bank paging
3745
out (c), a; // ROM 0, RAM 0, VIDEO 0, paging enabled
38-
nop; // enter ROM 0 beofer hitting RST 8 trap
46+
nop; // enter BOOT ROM before hitting RST 8 trap
3947

40-
org $0005; // BDOS
41-
cpm:
42-
jp bdos; // immediate jump
48+
org $0005;
49+
;;
50+
; BDOS entry point for CP/M compatibility
51+
;;
52+
bdos:
53+
nop; // FIXME - should jump somewhere
54+
nop; //
55+
nop; //
4356

4457
org $0008;
4558
;;
@@ -50,7 +63,6 @@ rst_08:
5063
ld (x_ptr), hl; // to error pointer
5164
jr error_2; // then jump
5265

53-
5466
org $0010;
5567
;;
5668
; print a character
@@ -66,7 +78,6 @@ from_rom0:
6678
xor a; // LD A, 0
6779
jp start_new; // deal with a cold start
6880

69-
7081
org $0018;
7182
;;
7283
; collect character

basic/modules/15_files.asm

-5
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,6 @@
5757
buffer_1 equ buffer + 2; // (iy + $6a)
5858

5959

60-
; // CP/M emulation
61-
bdos:
62-
ret;
63-
64-
6560
; // file channels
6661

6762
get_handle:

bin/FIRMWA~1.BIN

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)