|
Startseite • Forum • Assembler
Speicher
|
Mono
|
16. March 2006 20:00:
Speicher
|
|
Hallo Leute ich möchte ein programm das mir den Speicher holt
und so raus spukt wie unten angegeben. Was mache ich falsch ?
Das so aussieht (Du Hast: 233.Kbyte speicher!).
Danke im vorraus
.model small
.data
Text db "Du hast: "
Mem dw ?
db ".Kbyte memory!","$"
.code
start:
mov ax,@data
mov ds,ax
mov dx,offset text
call Ausgabe
mov ah,88h
int 15h
mov Mem,ax
mov dx,offset Mem
call Ausgabe
call Ende
;-----------------------
Ausgabe proc near
mov ah,9h
int 21h
ret
Ausgabe endp
;-----------------------
;-----------------------
Ende proc near
mov ah,4ch
int 21h
Ende endp
;-----------------------
ends
end start
|
Optionen: |
Diesem Eintrag antworten
| Diesen Eintrag zitieren
|
|