30 lines
654 B
NASM
30 lines
654 B
NASM
; ***************************************************************************
|
|
; copyright : (C) 2023 by Martin Preuss
|
|
; email : martin@libchipcard.de
|
|
;
|
|
; ***************************************************************************
|
|
; * This file is part of the project "AqHome". *
|
|
; * Please see toplevel file COPYING of that project for license details. *
|
|
; ***************************************************************************
|
|
|
|
|
|
; 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
|