Skip to content

Commit

Permalink
DeskTop: More internal API tidying
Browse files Browse the repository at this point in the history
* Add UpdateActivateAndRefreshSelectedWindow
* Rename proc to RemoveWindowFileRecords
* Inline InitCachedWindowEntries
* Rename proc to GetWindowPtr
* Consolidate lib includes
* Rename various procs used for populating windows
* Shave bytes in IsControlChar

No functional changes. Saves 8 bytes.
  • Loading branch information
inexorabletash committed Jan 26, 2025
1 parent 989f0db commit 416e8c1
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 83 deletions.
3 changes: 1 addition & 2 deletions desk.acc/change.type.s
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,7 @@ cursor_ibeam_flag: .byte 0
bcs yes

cmp #' '
bcc yes
rts ; C=1
rts ; C=0 (if less) or 1

yes: clc ; C=0
rts
Expand Down
3 changes: 1 addition & 2 deletions desk.acc/find.files.s
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,7 @@ ignore:
bcs yes

cmp #' '
bcc yes
rts ; C=1
rts ; C=0 (if less) or 1

yes: clc ; C=0
rts
Expand Down
4 changes: 2 additions & 2 deletions desktop/init.s
Original file line number Diff line number Diff line change
Expand Up @@ -1100,11 +1100,11 @@ loop: ldy #0

lda #$80
sta main::copy_new_window_bounds_flag
sta main::OpenDirectoryImpl::suppress_error_on_open_flag
sta main::CreateFileRecordsForWindowImpl::suppress_error_on_open_flag
jsr _MaybeOpenWindow
lda #0
sta main::copy_new_window_bounds_flag
sta main::OpenDirectoryImpl::suppress_error_on_open_flag
sta main::CreateFileRecordsForWindowImpl::suppress_error_on_open_flag

next: jsr PopPointers

Expand Down
Loading

0 comments on commit 416e8c1

Please sign in to comment.