📄 siminit.cmd
字号:
; LEAD Simulator startup command file
; ===================================
; =======================================================================
;|This file contains 'ma' (map add) commands to define some memory maps. |
; ========================================================================
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;micro processor mode, overlay = 1 ;;
;;mp/mc=1, ovly=1 ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
?pmst=0xFFE0
;
;;============
;; data space
;;============
;
ma 0x0000, 1, 0x0080, R|W|DA ;DARAM
ma 0x0080, 1, 0x0380, R|W|DA ;DARAM
ma 0x0400, 1, 0x0400, R|W|DA ;DARAM
ma 0x0800, 1, 0x0400, R|W|DA ;DARAM
ma 0x0C00, 1, 0x0400, R|W|DA ;DARAM
ma 0x1000, 1, 0x0400, R|W|DA ;DARAM
;ma 0x1400, 1, 0xEC00, R|W|EX ;External
;
;;================
;; program space
;;================
;
ma 0x0080, 0, 0x0380, R|W|DA ;DARAM
ma 0x0400, 0, 0x0400, R|W|DA ;DARAM
ma 0x0800, 0, 0x0400, R|W|DA ;DARAM
ma 0x0C00, 0, 0x0400, R|W|DA ;DARAM
ma 0x1000, 0, 0x0400, R|W|DA ;DARAM
ma 0x1400, 0, 0xEB80, R|W|EX ;external
ma 0x1400, 0, 0x0C00, R|W|EX ;external
ma 0x2000, 0, 0x2000, R|W|EX ;external
ma 0x4000, 0, 0x4000, R|W|EX ;external
ma 0x8000, 0, 0x4000, R|W|EX ;external
ma 0xC000, 0, 0x2000, R|W|EX ;external
ma 0xff80, 0, 0x0080, R|W|EX
;================
; Port to file
;================
;ma 0x0010,2,1,P|W ;0x0010 as output port
;mc 0x0010,2,1,yn.prn,WRITE ;connect output port to file "yn.prn"
;================
; Serial Port Simulation
;================
;ma 0x0020,1,1,R|P ;configure DRR0 as input port
;ma 0x0021,1,1,W|P ;configure DXR0 as output port
;mc 0x0020,1,1,rcv.dat,READ ;connect file "rdat" to port 0x0020
;mc 0x0021,1,1,tra.dat,WRITE ;connect file "tdat" to port 0x0021
;pinc FSX,fsx0_pin.dat ;connect file "fsx0_pin.dat" to FSX
;pinc FSR,fsr0_pin.dat ;connect file "fsr0_pin.dat" to FSR
;?pc=0xc000
;
;========================================================================
; Some aliases to access the often used individual status bits
;========================================================================
;
;alias DP, "?(st0&0x1ff),x"
;alias OVB, ?((st0&0x200)>>9)
;alias OVA, ?((st0&0x400)>>10)
;alias CARRY, ?((st0&0x800)>>11)
;alias TC, ?((st0&0x1000)>>12)
;alias ARP, ?((st0&0xe000)>>13)
;
;alias ASMS, "?(st1&0x1f),x"
;alias FRCT, ?((st1&0x40)>>6)
;alias C16, ?((st1&0x80)>>7)
;alias SXM, ?((st1&0x100)>>8)
;alias OVM, ?((st1&0x200)>>9)
;alias INTM, ?((st1&0x800)>>11)
;
;========================================================================
; Some watch add commands to view the often used individual status bits
;========================================================================
;
;wa (st0&0x1ff),DP,x
;wa ((st0&0x200)>>9),OVB
;wa ((st0&0x400)>>10),OVA
;wa ((st0&0x800)>>11),C
;wa ((st0&0x1000)>>12),TC
;wa ((st0&0xe000)>>13),ARP
;
;wa (st1&0x1f),ASM,x
;wa ((st1&0x40)>>6),FRCT
;wa ((st1&0x80)>>7),C16
;wa ((st1&0x100)>>8),SXM
;wa ((st1&0x200)>>9),OVM
;wa ((st1&0x800)>>11),INTM
;wa ((st1&0x2000)>>13),XF
;
scolor file_pc,red,white
scolor file_pc_brk,red,white
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -