Skip to content

Commit

Permalink
Fixed 68k project and startup files.
Browse files Browse the repository at this point in the history
  • Loading branch information
bayerf42 committed Dec 11, 2024
1 parent 996de63 commit eadf7ab
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 5 deletions.
2 changes: 1 addition & 1 deletion clox_rom.prj → clox.prj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
IDE68K version 2.1 project file - Do not edit this file -
267555 "" "" "KIT68K=1"
"C:\Ide68k\Lox68k\cstart_lox_rom.asm"
"C:\Ide68k\Lox68k\cstart_lox.asm"
"C:\Ide68k\Lox68k\ffp_glue.asm"
"C:\Ide68k\Lib\std68k.lib"
"C:\Ide68k\Lox68k\chunk.c"
Expand Down
31 changes: 31 additions & 0 deletions clox_dbg.prj
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
IDE68K version 2.1 project file - Do not edit this file -
267555 "" "" "KIT68K=1;LOX_DBG=1"
"C:\Ide68k\Lox68k\cstart_lox_dbg.asm"
"C:\Ide68k\Lox68k\ffp_glue.asm"
"C:\Ide68k\Lib\std68k.lib"
"C:\Ide68k\Lox68k\chunk.c"
"C:\Ide68k\Lox68k\chunk.h"
"C:\Ide68k\Lox68k\compiler.c"
"C:\Ide68k\Lox68k\compiler.h"
"C:\Ide68k\Lox68k\disasm.c"
"C:\Ide68k\Lox68k\disasm.h"
"C:\Ide68k\Lox68k\machine.h"
"C:\Ide68k\Lox68k\main.c"
"C:\Ide68k\Lox68k\memory.c"
"C:\Ide68k\Lox68k\memory.h"
"C:\Ide68k\Lox68k\native.c"
"C:\Ide68k\Lox68k\native.h"
"C:\Ide68k\Lox68k\object.c"
"C:\Ide68k\Lox68k\object.h"
"C:\Ide68k\Lox68k\opcodes.h"
"C:\Ide68k\Lox68k\scanner.c"
"C:\Ide68k\Lox68k\scanner.h"
"C:\Ide68k\Lox68k\table.c"
"C:\Ide68k\Lox68k\table.h"
"C:\Ide68k\Lox68k\value.c"
"C:\Ide68k\Lox68k\value.h"
"C:\Ide68k\Lox68k\vm.c"
"C:\Ide68k\Lox68k\vm.h"
"C:\Ide68k\Lox68k\nano_malloc.c"
"C:\Ide68k\Lox68k\nano_malloc.h"
"C:\Ide68k\Lox68k\kit_util.asm"
5 changes: 1 addition & 4 deletions cstart_lox_rom.asm → cstart_common.asm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; CSTART_LOX_ROM.ASM - C startup-code for Sirichote 68008 Lox port in ROM.
; CSTART_COMMON.ASM - Common C startup-code for Sirichote 68008 Lox port.

; Section definitions and memory layout

Expand All @@ -7,7 +7,6 @@ himem equ $20000 ; Highest usable RAM address
lorom equ $40000 ; ROM low address
hirom equ $60000 ; ROM high address

progstart equ $44000 ; Code starts here in ROM
datastart equ $02000 ; Data starts here in RAM
loxlibsrc equ $5e000 ; Lox standard library source code in ROM

Expand All @@ -17,7 +16,6 @@ magic_val equ $1138 ; If this value is stored
magic_addr equ $200 ; at this address, we run on the 68008 SBC
ticks equ $268 ; monitor variable counting 100 Hz ticks


; Official monitor entry points in 4.x

_get_byte equ $40100
Expand All @@ -33,7 +31,6 @@ _lcd_defchar equ $40136
_monitor_loop equ $4013c
_monitor_scan equ $40142


option S0 ; write program ID to S0 record

section code
Expand Down
4 changes: 4 additions & 0 deletions cstart_lox.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
; CSTART_LOX.ASM - C startup-code for Sirichote 68008 Lox port without debugging

progstart equ $52000 ; Code starts here in ROM
include cstart_common.asm
4 changes: 4 additions & 0 deletions cstart_lox_dbg.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
; CSTART_LOX_DBG.ASM - C startup-code for Sirichote 68008 Lox port with debugging

progstart equ $44000 ; Code starts here in ROM
include cstart_common.asm

0 comments on commit eadf7ab

Please sign in to comment.