Skip to content

Commit ccaa5fc

Browse files
committed
BSS to BANK and use common spaces for source
1 parent a297ae9 commit ccaa5fc

File tree

7 files changed

+11
-14
lines changed

7 files changed

+11
-14
lines changed

src/atari/full/modules/mod_files/common/mf_data.s

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ mf_ellipsize: .res 32
4444
mf_ask_buff: .res 64
4545
mf_sct_buff: .res 6
4646

47-
.bss
47+
.segment "BANK"
48+
4849
; the current directory position value while browsing of first entry on screen
4950
mf_dir_pos: .res 2
5051
mf_dir_pg_cnt: .res 1

src/atari/full/modules/mod_files/common/mf_kb_cb.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ mf_kb_cb_reset_anim:
133133
mva #0, pause_counter
134134
rts
135135

136-
.bss
136+
.segment "BANK"
137137
anim_index: .res 1 ; Current starting position in filename
138138
anim_direction: .res 1 ; 0=moving right, 1=moving left
139139
pause_counter: .res 1 ; Pause cycles at boundaries before reversing

src/atari/full/modules/mod_files/pages/mfp_main.s

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
.import _page_cache_init
3131
.import kb_selection_changed_cb
3232
.import _put_s
33+
.import empty_help
3334

3435
.include "zp.inc"
3536
.include "macros.inc"
@@ -158,7 +159,7 @@ skip_repaint:
158159
beq show_size
159160

160161
; It's a directory, show spaces instead
161-
put_s #27, #21, #dir_spaces
162+
put_s #27, #21, #empty_help
162163
rts
163164

164165
show_size:
@@ -182,10 +183,8 @@ show_size:
182183
put_s #27, #21, ptr1
183184
rts
184185

185-
.data
186-
dir_spaces: .byte " ",0 ; 10 spaces for directory entries
187186

188187
.endproc
189188

190-
.bss
189+
.segment "BANK"
191190
mf_prev_selected: .res 1 ; Track previous selection for filename repaint

src/atari/full/modules/mod_files/pages/mfp_show_page.s

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
.import ts_output
1616
.import size_to_str
1717
.import size_output
18+
.import empty_help
1819

1920
.import pushax
2021
.import _fc_strlen
@@ -231,16 +232,13 @@ done:
231232
beq show_size
232233

233234
; It's a directory, show spaces instead
234-
put_s #29, #21, #dir_spaces
235+
put_s #27, #21, #empty_help
235236
rts
236237

237238
show_size:
238239
put_s #27, #21, #mfp_filesize_cache
239240
rts
240241

241-
.data
242-
dir_spaces: .byte " ",0 ; 10 spaces for directory entries
243-
244242
.bss
245243
mfp_current_entry: .res 2
246244
mfp_e_is_dir: .res 1

src/atari/full/modules/mod_info/mi_init_screen.s

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.export _mi_init_screen
22
.export mi_set_pmg_widths
33
.export mi_show_help
4+
.export empty_help
45

56
.import _bank_count
67
.import _clr_help

src/atari/full/modules/mod_wifi/mw_setup_wifi.s

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
.import mw_custom_msg
99
.import mw_error_no_networks
1010
.import mw_net_count
11-
.import mw_nets_msg2
1211
.import pusha
1312
.import put_s_p1p4
1413
.import return0
1514
.import return1
15+
.import empty_help
1616

1717
.import debug
1818

@@ -41,7 +41,7 @@
4141
mva #10, mw_net_count
4242

4343
ok:
44-
put_s #10, #12, #mw_nets_msg2
44+
put_s #10, #12, #empty_help
4545
; loop over all the networks, and display their names for now
4646
; screen location for first entry in ptr4
4747
ldx #4

src/atari/full/screen/mod_screen_data.s

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
.export mw_netmask
2020
.export mw_ssid
2121
.export mw_nets_msg
22-
.export mw_nets_msg2
2322

2423
.include "macros.inc"
2524

@@ -282,7 +281,6 @@ mw_mac: .byte "MAC:", 0
282281
mw_bssid: .byte "BSSID:", 0
283282

284283
mw_nets_msg: .byte "Fetching Networks", 0
285-
mw_nets_msg2: .byte " ", 0
286284

287285
; ------------------------------------------------------------------
288286
; GLOBAL data

0 commit comments

Comments
 (0)