diff --git a/c64/basic/a533.linkprg.s b/c64/basic/a533.linkprg.s index f272bd30..57d6bdda 100644 --- a/c64/basic/a533.linkprg.s +++ b/c64/basic/a533.linkprg.s @@ -1,6 +1,7 @@ // #LAYOUT# STD * #TAKE +// #LAYOUT# M65 BASIC_0 #TAKE +// #LAYOUT# M65 BASIC_1 #TAKE-FLOAT // #LAYOUT# X16 BASIC_0 #TAKE-OFFSET 2000 -// #LAYOUT# * BASIC_0 #TAKE // #LAYOUT# * * #IGNORE // @@ -12,6 +13,14 @@ LINKPRG: +#if (ROM_LAYOUT_M65 && SEGMENT_BASIC_0) + + jsr map_BASIC_1 + jsr_ind VB1__LINKPRG + jmp map_NORMAL + +#else + // Start by getting pointer to the first line jsr init_oldtxt @@ -19,11 +28,13 @@ linkprg_loop: // Is the pointer to the end of the program ldy #1 -#if CONFIG_MEMORY_MODEL_60K +#if ROM_LAYOUT_M65 + jsr peek_via_OLDTXT +#elif CONFIG_MEMORY_MODEL_60K ldx #