home *** CD-ROM | disk | FTP | other *** search
- ;********************************************************;
- ;* HCF.ASS *;
- ;* Programm HCF - DEBUGger-Code *;
- ;* (C) 1989 by Matthias Nadenau & TOOLBOX *;
- ;********************************************************;
-
- a
- ; Registersicherung
- push ds
- push es
- push bx
- push cx
- push dx
- ; Segmentadresse von HC-INT erfragen
- mov ah, 35
- mov al, 5
- int 21
- ; Erkennungszeichen von HC-INT testen
- es:
- cmp word ptr [100], bde9
- jne 160 ; falls Fehler
- es:
- cmp word ptr [102], 5000
- jne 160 ; falls Fehler
- es:
- cmp word ptr [104], 8c1e
- jne 160 ; falls Fehler
- ; Speicherbereich freigeben
- mov ah, 49
- int 21
- ; alten Interrupt restaurieren
- push ds
- es:
- mov dx, [1b6]
- es:
- mov ds, [1b4]
- mov al, 5
- mov ah, 25
- int 21
- pop ds
- ; zum Programmende springen
- jmp 180
-
- a 160
- ; Ausgabe der Fehlermeldung
- mov ah, 9
- mov dx, 200
- int 21
- jmp 180
-
- a 180
- ; allgemeiner Programmabschluß
- pop dx
- pop cx
- pop bx
- pop es
- pop ds
- int 20
-
- e 200
- 48 43 2d 49 6e 74 65 72 72 75 70 74 20 6b 61 6e
- e 210
- 6e 20 6e 69 63 68 74 20 67 65 6c 94 73 63 68 74
- e 220
- 20 77 65 72 64 65 6e 21 24 24 24 24 24 24 24 24
-
- r cx
- 250
- n hcf.com
- w
- q