Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
aaf780179This file is pinned to the selected release. Download the original to open it in your design tool.
;
;;=======================================================================================
;; Miscellaneous functions which did not fit in any other library file.
;;=======================================================================================
;
;
;***************************************************************************************
;* MISC$WAIT
;*
;* Waits for several milliseconds, controlled by R8. This is just a stupid wait loop
;* as we as of now do not have hardware timers and interrupts.
;*
;* R8: Contains delay value
;***************************************************************************************
;
MISC$WAIT INCRB
_MISC$WAIT_1 MOVE R8, R8
RBRA _MISC$WAIT_END, Z ; Finished, when R8 == 0
MOVE 0x0100, R0
_MISC$WAIT_2 SUB 0x0001, R0
RBRA _MISC$WAIT_2, !Z
SUB 0x0001, R8
RBRA _MISC$WAIT_1, 1
_MISC$WAIT_END DECRB
RET
;
;***************************************************************************************
;* MISC$EXIT
;*
;* Exit a program and return to the QNICE monitor
;***************************************************************************************
;
MISC$EXIT ADD 0x0001, SP ; Just out of paranoia
RBRA QMON$WARMSTART, 1