Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- REM ####################################
- REM ## Install the bootloader
- REM ####################################
- SET A, 0
- SET B, 0x8000
- HWI 0
- SET A, 1
- SET B, 0
- SET C, loader
- HWI 3
- SET [0x8000], 0x1949
- SET [0x8001], 0x196e
- SET [0x8002], 0x1973
- SET [0x8003], 0x1974
- SET [0x8004], 0x1961
- SET [0x8005], 0x196c
- SET [0x8006], 0x196c
- SET [0x8007], 0x1965
- SET [0x8008], 0x1964
- SET [0x8009], 0x1920
- SET [0x800a], 0x1922
- SET [0x800b], 0x1920
- SET [0x800c], 0x1948
- SET [0x800d], 0x1965
- SET [0x800e], 0x196c
- SET [0x800f], 0x196c
- SET [0x8010], 0x196f
- SET [0x8011], 0x1920
- SET [0x8012], 0x1957
- SET [0x8013], 0x196f
- SET [0x8014], 0x1972
- SET [0x8015], 0x196c
- SET [0x8016], 0x1964
- SET [0x8017], 0x1921
- SET [0x8018], 0x1922
- HNG
- REM ## The bootloader
- loader:
- SET B, 0x8000
- HWI 0
- REM ## Allow loader to be overridden by compiler
- SET C, 0
- SET [0x8000], 0x1948
- SET [0x8001], 0x1965
- SET [0x8002], 0x196c
- SET [0x8003], 0x196c
- SET [0x8004], 0x196f
- SET [0x8005], 0x1920
- SET [0x8006], 0x1957
- SET [0x8007], 0x196f
- SET [0x8008], 0x1972
- SET [0x8009], 0x196c
- SET [0x800a], 0x1964
- SET [0x800b], 0x1921
- HNG
- REM ## Bootloader ID
- FILL loader, 511
- DAT 0x55AA
- REM ####################################
- REM ## Remove the bootloader
- REM ####################################
- SET A, 0
- SET B, 0x8000
- HWI 0
- SET A, 1
- SET B, 0
- SET C, remove
- HWI 3
- SET [0x8000], 0x1955
- SET [0x8001], 0x196e
- SET [0x8002], 0x1969
- SET [0x8003], 0x196e
- SET [0x8004], 0x1973
- SET [0x8005], 0x1974
- SET [0x8006], 0x1961
- SET [0x8007], 0x196c
- SET [0x8008], 0x196c
- SET [0x8009], 0x1965
- SET [0x800a], 0x1964
- SET [0x800b], 0x1920
- HNG
- REM ## Empty sector
- remove:
- FILL remove, 512
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement