Skip to content

Commit ac52175

Browse files
committed
Fix parameters to fuji_put host/device
1 parent 651d255 commit ac52175

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

atari/src/fn_fuji/fuji_put_device_slots.s

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@
33
.import _bus
44
.import _fuji_success
55
.import copy_fuji_cmd_data
6+
.import popax
67

78
.include "zp.inc"
89
.include "macros.inc"
910
.include "device.inc"
1011
.include "fujinet-fuji.inc"
1112

12-
; bool _fuji_put_device_slots(DeviceSlot *device_slots)
13+
; bool _fuji_put_device_slots(DeviceSlot *device_slots, size_t size)
1314
.proc _fuji_put_device_slots
14-
axinto tmp7
15-
15+
; ignore size param for now, it's always 8 for atari and hardcoded into the size below, but would need to process it if we change the slot count.
16+
popax tmp7 ; DeviceSlot address
1617
setax #t_fuji_put_device_slots
1718
jsr copy_fuji_cmd_data
1819

atari/src/fn_fuji/fuji_put_host_slots.s

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@
33
.import _bus
44
.import _fuji_success
55
.import copy_fuji_cmd_data
6+
.import popax
67

78
.include "zp.inc"
89
.include "macros.inc"
910
.include "fujinet-fuji.inc"
1011
.include "device.inc"
1112

12-
; bool _fuji_put_host_slots(HostSlot *h)
13+
; bool _fuji_put_host_slots(HostSlot *h, size_t size)
1314
.proc _fuji_put_host_slots
14-
axinto tmp7
15+
; ignore size param for now, it's always 8 for atari and hardcoded into the size below, but would need to process it if we change the slot count.
16+
popax tmp7 ; HostSlot address
1517
setax #t_fuji_put_host_slots
1618
jsr copy_fuji_cmd_data
1719

atari/src/fn_fuji/fuji_scan_for_networks.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
.include "macros.inc"
99
.include "device.inc"
1010

11-
; int fuji_scan_for_networks(uint8_t *count)
11+
; bool fuji_scan_for_networks(uint8_t *count)
1212
;
1313
; returns count of networks scanned
1414
.proc _fuji_scan_for_networks

0 commit comments

Comments
 (0)