renamed makros M_IO_READ and M_IO_WRITE to inr and outr

This commit is contained in:
Martin Preuss
2025-05-28 00:49:07 +02:00
parent 042db13994
commit 961568f721
6 changed files with 77 additions and 50 deletions

View File

@@ -7,7 +7,7 @@
; * Please see toplevel file COPYING of that project for license details. *
; ***************************************************************************
#if 0
; M_IO_READ DEST, SRC
.macro M_IO_READ
.if @1 < 64
@@ -27,3 +27,26 @@
sts @0, @1
.endif
.endmacro
#endif
; inr DEST, SRC
.macro inr
.if @1 < 64
in @0, @1
.else
lds @0, @1
.endif
.endmacro
; outr DEST, SRC
.macro outr
.if @0 < 64
out @0, @1
.else
sts @0, @1
.endif
.endmacro