EDASS-128-BASIC-SYS-LINES-HOW-TO -------------------------------------------------------------------------------------------------- TOOL: EDASS-128 {Commodore C128 EDITOR & ASSEMBLER}, Windows Notepad, VICE-Emulator Language: Assembler Extra: - Author: Misel Zivanovic Note: (C) 14th MAY 2026 - www.lived.ch, mzretro.ch --------------------------------------------------------------------------------------------------- You probably have noticed the .BYTE lines the past two lessons. I've decided to move away from the classic 'design' and the usage of GO$1300 or GO$2000 or whatever, and switch to another classic which is well known to practically everyone. On Commodore C64 there is widely SYS 2061 or sometimes SYS 2064 used! Well, sure enough, you can use that on Commodore C128 too. I saw last video on YouTube, where a guy was explaining how to do it {C64} And he needed 40 minutes to explain the procedure. We can do it under one minute, but some of you will probably need a few seconds longer. STEP 1: Write BASIC lines STEP 2: ENTER ML-Monitor with the Monitor command STEP 3: LIST the BASIC start area M 1c00 1c58 --------------------------------------------------------------------------------------------------- Example BASIC lines: 10 rem (c) www.mzretro.ch 20 rem sprites >255 30 rem commodore c128 40 sys 7256 ready. monitor monitor pc sr ac xr yr sp ; fb000 00 00 00 00 f8 m 1c00 1c58 >01c00 00 1a 1c 0a 00 8f 20 28 43 29 20 57 57 57 2e 4d:...... (c) www.m >01c10 5a 52 45 54 52 4f 2e 43 48 00 2d 1c 14 00 8f 20:zretro.ch.-.... >01c20 53 50 52 49 54 45 53 20 3e 32 35 35 00 42 1c 1e:sprites >255.b.. >01c30 00 8f 20 43 4f 4d 4d 4f 44 4f 52 45 20 43 31 32:.. commodore c12 >01c40 38 00 4d 1c 28 00 9e 20 37 32 35 36 00 00 00 ff:8.m.(.. 7256.... >01c50 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff:................ STEP 4: Make the listed BYTES {mandatory including the last three 00 00 00} EDASS-128 READY: --------------------------------------------------------------------------------------------------- { I am doing this in Notepad, Windows, by replacing " " {SPACE} with ",$" AFTER the separation of the 16 BYTES in 2 x 8 BYTES, see this example below. Put minimum 2 SPACES between the .BYTE and first e.g. $00, just like this example is showing } .byte $00,$1a,$1c,$0a,$00,$8f,$20,$28 .byte $43,$29,$20,$57,$57,$57,$2e,$4d .byte $5a,$52,$45,$54,$52,$4f,$2e,$43 .byte $48,$00,$2d,$1c,$14,$00,$8f,$20 .byte $53,$50,$52,$49,$54,$45,$53,$20 .byte $3e,$32,$35,$35,$00,$42,$1c,$1e .byte $00,$8f,$20,$43,$4f,$4d,$4d,$4f .byte $44,$4f,$52,$45,$20,$43,$31,$32 .byte $38,$00,$4d,$1c,$28,$00,$9e,$20 .byte $37,$32,$35,$36,$00,$00,$00,$ff --------------------------------------------------------------------------------------------------- COPY the BYTE lines and PASTE them in EDASS-128 just like show here! ; ; BASIC START LINES ; *= $1c00 .obj m .bank 15 ; .byte $00,$1a,$1c,$0a,$00,$8f,$20,$28 .byte $43,$29,$20,$57,$57,$57,$2e,$4d .byte $5a,$52,$45,$54,$52,$4f,$2e,$43 .byte $48,$00,$2d,$1c,$14,$00,$8f,$20 .byte $53,$50,$52,$49,$54,$45,$53,$20 .byte $3e,$32,$35,$35,$00,$42,$1c,$1e .byte $00,$8f,$20,$43,$4f,$4d,$4d,$4f .byte $44,$4f,$52,$45,$20,$43,$31,$32 .byte $38,$00,$4d,$1c,$28,$00,$9e,$20 .byte $37,$32,$35,$36,$00,$00,$00,$ff ; ; PROGRAM START ; *= $1c58 ; lda #$00 ;BANK 15 (for RND#) sta $ff00 --------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------- OF COURSE... It doesn't need to be a 500 pages book, hehe... This would do the job just fine: --------------------------------------------------------------------------------------------------- commodore basic v7.0 122365 bytes free (c)1986 commodore electronics, ltd. (c)1977 microsoft corp. all rights reserved ready. 10 sys 7256 monitor monitor pc sr ac xr yr sp ; fb000 00 00 00 00 f8 m 1c00 1c00 >01c00 00 0c 1c 0a 00 9e 20 37 32 35 36 00 00 00 00 00:...... 7256..... --------------------------------------------------------------------------------------------------- ; ; BASIC START LINES ; *= $1c00 .obj m .bank 15 ; .byte $00,$0c,$1c,$0a,$00,$9e,$20,$37 .byte $32,$35,$36,$00,$00,$00 ; ; PROGRAM START ; *= $1c58 ; lda #$00 ;BANK 15 (for RND#) sta $ff00 --------------------------------------------------------------------------------------------------- As this is taking less space, you could choose lower start address e.g. dec 7200. $1c20 and save a few bytes, meaning gain a few bytes for the main program part!