; Dissassembly of AMSDOS.COM from DDI-1 and CPC664 CPM disc ; ; Note: ; - This program always resets regardless of whether the BASIC command has been found ; or not. ; - The return values from KL FIND COMMAND are ignored completely ; - The "BASIC not found." message is probably always printed, but reset happens too quickly ; so you don't see it. ; ; This AMSDOS.COM will probably only work on 464/664 versions of CPM 2.2. Not tested ; on CPM 2.2 that comes with CPC6128. 0100 211001 ld hl,&0110 ;; Search for "BASIC" RSX (|BASIC from Basic) 0103 cdd4bc call &bcd4 ;; KL FIND COMMAND 0106 0e09 ld c,&09 ;; print string 0108 112001 ld de,&0120 010b cd0500 call &0005 ;; BDOS 010e c7 rst &00 ;; perform reset 010f 00 nop ;; unused 0110 defb "BASI","C"+&80 ;; 11 NOP instructions defs 11 0120 defb "BASIC not found.",13,10,"$"