mirror of
https://github.com/cc65/cc65.git
synced 2024-07-05 21:29:03 +00:00
dio functions and type now have no leading _ anymore; swapped phys. and
log. parameters git-svn-id: svn://svn.cc65.org/cc65/trunk@434 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
bfff0af539
commit
0283e309da
@ -7,28 +7,28 @@
|
|||||||
; on the Atari this function is a dummy, it returns
|
; on the Atari this function is a dummy, it returns
|
||||||
; cylinder and head 0 and as sector the sectnum it got
|
; cylinder and head 0 and as sector the sectnum it got
|
||||||
;
|
;
|
||||||
; unsigned char __fastcall__ _dio_log_to_phys(_dhandle_t handle,
|
; unsigned char __fastcall__ dio_log_to_phys(dhandle_t handle,
|
||||||
; _dio_phys_pos *physpos, /* output */
|
; sectnum_t *sectnum, /* input */
|
||||||
; _sectnum_t *sectnum); /* input */
|
; dio_phys_pos *physpos); /* output */
|
||||||
;
|
;
|
||||||
; _dhandle_t - 16bit (ptr)
|
; dhandle_t - 16bit (ptr)
|
||||||
; _sectnum_t - 16bit
|
; sectnum_t - 16bit
|
||||||
;
|
;
|
||||||
|
|
||||||
.export __dio_log_to_phys
|
.export _dio_log_to_phys
|
||||||
.include "atari.inc"
|
.include "atari.inc"
|
||||||
.importzp ptr1,ptr2,ptr3
|
.importzp ptr1,ptr2,ptr3
|
||||||
.import popax,__oserror
|
.import popax,__oserror
|
||||||
|
|
||||||
.proc __dio_log_to_phys
|
.proc _dio_log_to_phys
|
||||||
|
|
||||||
sta ptr1
|
|
||||||
stx ptr1+1 ; save pointer to input data
|
|
||||||
|
|
||||||
jsr popax
|
|
||||||
sta ptr2
|
sta ptr2
|
||||||
stx ptr2+1 ; pointer to output structure
|
stx ptr2+1 ; pointer to output structure
|
||||||
|
|
||||||
|
jsr popax
|
||||||
|
sta ptr1
|
||||||
|
stx ptr1+1 ; save pointer to input data
|
||||||
|
|
||||||
jsr popax
|
jsr popax
|
||||||
sta ptr3
|
sta ptr3
|
||||||
stx ptr3+1 ; pointer to handle
|
stx ptr3+1 ; pointer to handle
|
||||||
@ -57,7 +57,6 @@
|
|||||||
_l1: lda (ptr1,x)
|
_l1: lda (ptr1,x)
|
||||||
sta (ptr2),y
|
sta (ptr2),y
|
||||||
|
|
||||||
ldx #0
|
|
||||||
txa
|
txa
|
||||||
ret:
|
ret:
|
||||||
sta __oserror
|
sta __oserror
|
||||||
|
Loading…
Reference in New Issue
Block a user