1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-06 06:33:34 +00:00

Made direct c64 implementation of _cbm_set_working_screen, because the overhead of outsourcing into cbm folder was too large.

This commit is contained in:
mc78 2024-08-26 22:23:22 +02:00
parent 2735cd8365
commit c4ba32a1c2
2 changed files with 2 additions and 18 deletions

View File

@ -7,7 +7,6 @@
.include "c64.inc"
.import cbm_update_working_screen_pointers
.export _cbm_set_working_screen
_cbm_set_working_screen:
@ -16,7 +15,7 @@ _cbm_set_working_screen:
and #3
bne @error
txa
ldy #reject_range_count - 1
@check_ranges:
cmp reject_range_start, y
@ -28,7 +27,7 @@ _cbm_set_working_screen:
bpl @check_ranges
sta SCREEN_HI ; Tell kernal to which memory screen output will go
jsr cbm_update_working_screen_pointers
jsr $e56c
lda #0
tax

View File

@ -1,15 +0,0 @@
;
; Stefan 'MonteCarlos' Andree, 26.08.2024
;
; Helper function for _cbm_set_working_screen (contains no checks, if desired screen addr is valid)
; Called by concrete implementations in the target subfolders
.include "cbm.inc"
.export cbm_update_working_screen_pointers
cbm_update_working_screen_pointers:
sec
jsr PLOT ; Get cursor position ...
clc
jmp PLOT ; ... and set it again to update address of char below cursor with new hi-byte