mirror of
https://github.com/pConst/basic_verilog.git
synced 2025-01-28 07:02:55 +08:00
26 lines
214 B
Plaintext
26 lines
214 B
Plaintext
|
|
address $0
|
|
start:
|
|
load s0, 0
|
|
load sE, 0
|
|
load sF, 0
|
|
interrupt enable
|
|
|
|
loop:
|
|
addcy s0, $f0
|
|
call nc, func
|
|
jump loop
|
|
|
|
func:
|
|
add sE, 3
|
|
return
|
|
|
|
isr:
|
|
addcy sF, 1
|
|
returni enable
|
|
|
|
|
|
address $3ff
|
|
irq:
|
|
jump isr
|