// #LAYOUT# STD * #TAKE // #LAYOUT# * BASIC_0 #TAKE // #LAYOUT# * * #IGNORE // Find the BASIC line with number LINNUM // XXX it should be possible to start from the current line (OLDTXT), or from the startup, // depending on the current and target line number find_line: // Get pointer to start of BASIC text lda TXTTAB+0 sta OLDTXT+0 lda TXTTAB+1 sta OLDTXT+1 // FALLTROUGH find_line_loop: // Check if line is not empty jsr peek_line_pointer_null_check bcc find_line_fail // Fetch the high byte of line number and compare ldy #$03 #if CONFIG_MEMORY_MODEL_60K ldx #