1
0
mirror of https://github.com/cc65/cc65.git synced 2025-08-11 11:25:08 +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" .include "c64.inc"
.import cbm_update_working_screen_pointers
.export _cbm_set_working_screen .export _cbm_set_working_screen
_cbm_set_working_screen: _cbm_set_working_screen:
@@ -28,7 +27,7 @@ _cbm_set_working_screen:
bpl @check_ranges bpl @check_ranges
sta SCREEN_HI ; Tell kernal to which memory screen output will go sta SCREEN_HI ; Tell kernal to which memory screen output will go
jsr cbm_update_working_screen_pointers jsr $e56c
lda #0 lda #0
tax 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