-
Notifications
You must be signed in to change notification settings - Fork 3
/
incMountCommand.asm
25 lines (22 loc) · 1.08 KB
/
incMountCommand.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
;*******************************************************************************
;* Mount Routine *
;* Syntax : Mount or m shifted O 'ImageName.d64' *
;*******************************************************************************
MOUNT
jsr CHRGOT ; Check For Characters
bne MNT_GetFileName ; Characters, Jump To Inform
jmp SYNTAX_ERROR ; No Characters Found, Send Syntax Error
MNT_GetFileName
ldy #0 ; Init DOS Buffer Index
lda #"c" ; 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 ; Stores it in DOS Buffer
iny ; Increase Index
CHRGETSpaceCheck 255
GetFilenameFromCommandLine DosCommandBuffer
jmp DOS