forked from OldSkoolCoder/CIDOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathincMakeDirectoryCommand.asm
25 lines (22 loc) · 1.08 KB
/
incMakeDirectoryCommand.asm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
;*******************************************************************************
;* MakeDIR Routine *
;* Syntax : Makedir or m shifted A 'Directory Name' *
;*******************************************************************************
MAKEDIR
jsr CHRGOT ; Check For Characters
bne MDR_GetFileName ; Characters, Jump To Inform
jmp SYNTAX_ERROR ; No Characters Found, Send Syntax Error
MDR_GetFileName
ldy #0 ; Init DOS Buffer Index
lda #"m" ; Load Mount Disk Command
sta DosCommandBuffer,y ; Store it in DOS Buffer
iny ; Increas Index
lda #"d" ; Load Mount Disk Command
sta DosCommandBuffer,y ; Store it in DOS Buffer
iny ; increase index
lda #CHR_Colon ; Loads ':'
sta DosCommandBuffer,y ; Store it in DOS Buffer
iny ; Increase Index
CHRGETSpaceCheck 255
GetFilenameFromCommandLine DosCommandBuffer
jmp DOS