mirror of
https://github.com/pConst/basic_verilog.git
synced 2025-01-28 07:02:55 +08:00
44 lines
978 B
Plaintext
44 lines
978 B
Plaintext
|
/* Symbol Table */
|
||
|
// func = LABEL: 7
|
||
|
// irq = LABEL: 1023
|
||
|
// isr = LABEL: 9
|
||
|
// loop = LABEL: 4
|
||
|
// s0 = REGISTER: 0
|
||
|
// s1 = REGISTER: 1
|
||
|
// s2 = REGISTER: 2
|
||
|
// s3 = REGISTER: 3
|
||
|
// s4 = REGISTER: 4
|
||
|
// s5 = REGISTER: 5
|
||
|
// s6 = REGISTER: 6
|
||
|
// s7 = REGISTER: 7
|
||
|
// s8 = REGISTER: 8
|
||
|
// s9 = REGISTER: 9
|
||
|
// sA = REGISTER: 10
|
||
|
// sB = REGISTER: 11
|
||
|
// sC = REGISTER: 12
|
||
|
// sD = REGISTER: 13
|
||
|
// sE = REGISTER: 14
|
||
|
// sF = REGISTER: 15
|
||
|
// start = LABEL: 0
|
||
|
|
||
|
/* Program Code */
|
||
|
@000 // #2: address(0)
|
||
|
// @000 #3: [start]
|
||
|
00000 // @000 #4: load(s0,0)
|
||
|
00e00 // @001 #5: load(sE,0)
|
||
|
00f00 // @002 #6: load(sF,0)
|
||
|
3c001 // @003 #7: interrupt(enable)
|
||
|
// @004 #9: [loop]
|
||
|
1a0f0 // @004 #10: addcy(s0,240)
|
||
|
31c07 // @005 #11: call(nc,func)
|
||
|
34004 // @006 #12: jump(loop)
|
||
|
// @007 #14: [func]
|
||
|
18e03 // @007 #15: add(sE,3)
|
||
|
2a000 // @008 #16: return
|
||
|
// @009 #18: [isr]
|
||
|
1af01 // @009 #19: addcy(sF,1)
|
||
|
38001 // @00a #20: returni(enable)
|
||
|
@3ff // #23: address(1023)
|
||
|
// @3ff #24: [irq]
|
||
|
34009 // @3ff #25: jump(isr)
|