mirror of
https://github.com/Tolik-Trek/ReBoot.git
synced 2026-06-15 09:21:48 +03:00
Simple ReBoot with clear RAM and RAM Disks
This commit is contained in:
parent
f5f2266d03
commit
129e0b84aa
4
.gitmodules
vendored
Normal file
4
.gitmodules
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[submodule "Shared_Includes"]
|
||||||
|
branch = main
|
||||||
|
path = Shared_Includes
|
||||||
|
url = https://github.com/Tolik-Trek/Shared_Includes.git
|
||||||
114
REBOOT.ASM
Normal file
114
REBOOT.ASM
Normal file
@ -0,0 +1,114 @@
|
|||||||
|
;
|
||||||
|
; Compilation parameters
|
||||||
|
;---------------------------------------------------------------------[]
|
||||||
|
;DEVICE SPRINTER
|
||||||
|
;MMU 2 e, 0 ; ã«¥¢ ï áâà ¨æ ¢ ¡ ªã 2 ¨ ¯à®¢¥àª £à ¨æë
|
||||||
|
;OUTPUT './Build/new.bin'
|
||||||
|
;---------------------------------------------------------------------[]
|
||||||
|
;
|
||||||
|
|
||||||
|
|
||||||
|
;
|
||||||
|
; Defines section
|
||||||
|
;---------------------------------------------------------------------[]
|
||||||
|
define DEBUG 0
|
||||||
|
define EMULATOR 0
|
||||||
|
define EXE_HEADER 1
|
||||||
|
; define NEED_LOADER 1
|
||||||
|
; define NeedSafePort_Y 0
|
||||||
|
;---------------------------------------------------------------------[]
|
||||||
|
;
|
||||||
|
|
||||||
|
|
||||||
|
;
|
||||||
|
; Included LUA section
|
||||||
|
;---------------------------------------------------------------------[]
|
||||||
|
; includelua <Shared_Includes/LUA/Functions.LUA>
|
||||||
|
;---------------------------------------------------------------------[]
|
||||||
|
;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
;
|
||||||
|
; Included constants section
|
||||||
|
;---------------------------------------------------------------------[]
|
||||||
|
include 'Shared_Includes/constants/sp2000.inc'
|
||||||
|
include 'Shared_Includes/constants/dss_equ.inc'
|
||||||
|
include 'Shared_Includes/constants/BIOS_equ.inc'
|
||||||
|
;---------------------------------------------------------------------[]
|
||||||
|
;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
;
|
||||||
|
; Included macroses section
|
||||||
|
;---------------------------------------------------------------------[]
|
||||||
|
; include 'Shared_Includes/macroses/macros.z80'
|
||||||
|
; include 'Shared_Includes/macroses/accelerator.z80'
|
||||||
|
;---------------------------------------------------------------------[]
|
||||||
|
;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
;
|
||||||
|
; Standart EQU section
|
||||||
|
;---------------------------------------------------------------------[]
|
||||||
|
org_addr EQU #8000 + CLP_Buffer
|
||||||
|
code_addr EQU START
|
||||||
|
stack_point EQU #BFFE
|
||||||
|
stack_buffer EQU 64
|
||||||
|
program_start EQU START
|
||||||
|
;---------------------------------------------------------------------[]
|
||||||
|
;
|
||||||
|
|
||||||
|
;
|
||||||
|
; Code start section
|
||||||
|
;[]-------------------------------------------------------------------[]
|
||||||
|
IF EXE_HEADER
|
||||||
|
include 'Shared_Includes/constants/EXE_Header.z80'
|
||||||
|
ORG org_addr
|
||||||
|
ELSE
|
||||||
|
ORG org_addr - CLP_Buffer
|
||||||
|
ENDIF
|
||||||
|
IF DEBUG
|
||||||
|
OUTPUT "Build/Debug.bin"
|
||||||
|
ENDIF
|
||||||
|
;
|
||||||
|
;---------------------------------------------------------------------[]
|
||||||
|
START: DI
|
||||||
|
LD C,BIOS.FullInit
|
||||||
|
RST ToBIOS
|
||||||
|
|
||||||
|
LD BC,2*256 + BIOS.REINIT
|
||||||
|
RST ToBIOS
|
||||||
|
|
||||||
|
DI
|
||||||
|
HALT
|
||||||
|
;---------------------------------------------------------------------[]
|
||||||
|
|
||||||
|
|
||||||
|
;
|
||||||
|
;
|
||||||
|
IFDEF NEED_LOADER
|
||||||
|
Loader_length EQU $-BEGIN
|
||||||
|
ELSE
|
||||||
|
Loader_length EQU 0
|
||||||
|
ENDIF
|
||||||
|
IF DEBUG
|
||||||
|
OUTEND
|
||||||
|
DEVICE NONE
|
||||||
|
ENDIF
|
||||||
|
;----------------------------------------------[End Loader section]
|
||||||
|
;
|
||||||
|
; STACK_CHECK_MACRO stack_point, stack_buffer
|
||||||
|
; Code after Loader
|
||||||
|
|
||||||
|
;[]-------------------------------------------------------------------[]
|
||||||
|
; Code end section
|
||||||
|
; OUTEND
|
||||||
|
|
||||||
|
|
||||||
|
; LUA ALLPASS
|
||||||
|
; print (__VERSION__)
|
||||||
|
; ENDLUA
|
||||||
|
;---------------------------------------------------------------------[]
|
||||||
1
Shared_Includes
Submodule
1
Shared_Includes
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 94cb0e39f321bd11519008801187d93eacb280f2
|
||||||
Loading…
Reference in New Issue
Block a user