Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :BasicUpstart2(main)
- .var _useBinFolderForBreakpoints = cmdLineVars.get("usebin") == "true"
- .var _createDebugFiles = cmdLineVars.get("afo") == "true"
- .print "File creation " + [_createDebugFiles
- ? "enabled (creating breakpoint file)"
- : "disabled (no breakpoint file created)"]
- .var brkFile
- .if(_createDebugFiles) {
- .if(_useBinFolderForBreakpoints)
- .eval brkFile = createFile("bin/breakpoints.txt")
- else
- .eval brkFile = createFile("breakpoints.txt")
- }
- .macro break() {
- .if(_createDebugFiles) {
- .eval brkFile.writeln("break " + toHexString(*))
- }
- }
- main:
- lda $d011
- ora #%00100000
- sta $d011
- lda $d016
- ora #%00011000
- sta $d016
- lda $d018
- ora #%00011000
- sta $d018
- ldx #$00
- loop:
- lda $2000
- sta $0400,x
- lda $2000+256
- sta $0500,x
- lda $2000+512
- sta $0600,x
- lda $2000+768
- sta $0700,x
- lda $3f40,x
- sta $d800,x
- lda $3f40+256,x
- sta $d900,x
- lda $3f40+512,x
- sta $da00,x
- lda $3f40+768,x
- sta $db00,x
- inx
- bne loop
- jmp *
- *= $2000-2
- .import binary "smrlogo.art"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement