Mike_Z
Veteran Member
On the unofficial CP/M site I found the source code for CP/M in afile called CPM22.ASM. I am unfamiliar with this assembler and would like a little help deciphering it. Here is a clip from it,
I want to recreate the 20k system so the ORG which should be the start of CCP would be 3400H. I suspect that the first code at 3400H would a jump C3 and then the address of COMMAND then another jump C3 and the address of CLEARBUF. What is the next mnemonic? MOVEA, MVIC, 02, C3 and the address of ENTRY?
I'm trying to id the code I have gotten from another file CPM.SYS.
Thanks Mike
Code:
; Set origin for CP/M
;
ORG (MEM-7)*1024
;
CBASE JMP COMMAND ;execute command processor (ccp).
JMP CLEARBUF ;entry to empty input buffer before starting ccp.
;
; Standard cp/m ccp input buffer. Format is (max length),
; (actual length), (char #1), (char #2), (char #3), etc.
;
INBUFF DB 127 ;length of input buffer.
DB 0 ;current length of contents.
DB 'Copyright'
DB ' 1979 (c) by Digital Research '
DB 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
DB 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
DB 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
DB 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
INPOINT DW INBUFF+2;input line pointer
NAMEPNT DW 0 ;input line pointer used for error message. Points to
; ;start of name in error.
;
; Routine to print (A) on the console. All registers used.
;
PRINT MOV E,A ;setup bdos call.
MVI C,2
JMP ENTRY
I want to recreate the 20k system so the ORG which should be the start of CCP would be 3400H. I suspect that the first code at 3400H would a jump C3 and then the address of COMMAND then another jump C3 and the address of CLEARBUF. What is the next mnemonic? MOVEA, MVIC, 02, C3 and the address of ENTRY?
I'm trying to id the code I have gotten from another file CPM.SYS.
Thanks Mike