Skip to content

Commit

Permalink
Fix parameters to fuji_put host/device
Browse files Browse the repository at this point in the history
  • Loading branch information
markjfisher committed Mar 18, 2024
1 parent 651d255 commit ac52175
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
7 changes: 4 additions & 3 deletions atari/src/fn_fuji/fuji_put_device_slots.s
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@
.import _bus
.import _fuji_success
.import copy_fuji_cmd_data
.import popax

.include "zp.inc"
.include "macros.inc"
.include "device.inc"
.include "fujinet-fuji.inc"

; bool _fuji_put_device_slots(DeviceSlot *device_slots)
; bool _fuji_put_device_slots(DeviceSlot *device_slots, size_t size)
.proc _fuji_put_device_slots
axinto tmp7

; 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.
popax tmp7 ; DeviceSlot address
setax #t_fuji_put_device_slots
jsr copy_fuji_cmd_data

Expand Down
6 changes: 4 additions & 2 deletions atari/src/fn_fuji/fuji_put_host_slots.s
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@
.import _bus
.import _fuji_success
.import copy_fuji_cmd_data
.import popax

.include "zp.inc"
.include "macros.inc"
.include "fujinet-fuji.inc"
.include "device.inc"

; bool _fuji_put_host_slots(HostSlot *h)
; bool _fuji_put_host_slots(HostSlot *h, size_t size)
.proc _fuji_put_host_slots
axinto tmp7
; 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.
popax tmp7 ; HostSlot address
setax #t_fuji_put_host_slots
jsr copy_fuji_cmd_data

Expand Down
2 changes: 1 addition & 1 deletion atari/src/fn_fuji/fuji_scan_for_networks.s
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
.include "macros.inc"
.include "device.inc"

; int fuji_scan_for_networks(uint8_t *count)
; bool fuji_scan_for_networks(uint8_t *count)
;
; returns count of networks scanned
.proc _fuji_scan_for_networks
Expand Down

0 comments on commit ac52175

Please sign in to comment.