spectrum_remload/code.asm
Neil McPhail a6698e3ead Add a custom entry point to the user code
The routine does not have to start from the first byte of machine code
2024-11-10 19:17:37 +00:00

13 lines
509 B
NASM

; This is the main file you will edit to add your machine code to the REM statement.
; You _must_ include the "entry_point" tag to point to the address which will called by the BASIC "PRINT USR" statement.
; The default code below is for illustration only, and can be deleted.
; But REMEMBER TO ADD THE entry_point TAG TO YOUR OWN CODE!
data_start: ;if your routine starts here, move the entry_point tag here too
ld bc, 42
ret
entry_point: ;move this tag to the start point of your code
jr data_start