Skip to content

Commit d2af023

Browse files
tbdyereinauer
authored andcommitted
amifuse: fix APTR-to-BPTR conversion in send_disk_info
1 parent b3859b3 commit d2af023

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

amifuse/startup_runner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,8 +1007,8 @@ def _pc_valid(pc: int) -> bool:
10071007
return run_state
10081008

10091009
def send_disk_info(self, state: HandlerLaunchState, info_buf_addr: int):
1010-
# Arg1 = InfoData* (APTR)
1011-
return self.send_packet(state, ACTION_DISK_INFO, [info_buf_addr])
1010+
# Arg1 = InfoData* (BPTR)
1011+
return self.send_packet(state, ACTION_DISK_INFO, [info_buf_addr >> 2])
10121012

10131013
def send_read(self, state: HandlerLaunchState, buf_addr: int, offset_bytes: int, length_bytes: int):
10141014
# Arg1 = window (not used), Arg2 = offset (block), Arg3 = buf, Arg4 = length

0 commit comments

Comments
 (0)