Luis Cardoso wrote:
> If could possible, I would like that somebody tell me, if
> exist some Programming Language, or some compiller, that
> when generate the EXECUTABLE file, do not use "DOS CALL
> FUNTIONS".
You're in the assembly language echo and therefore off to a
good start. :-)
Something to play with:
; Mini OS- Assemble as a COM file, then write to a floppy:
; debug mini-os.com
; -w 100 0 0 1 ;be careful with this- it destroys DOS loader.
; -q ;Use only 100 0 0 1- read debug docs.
;
cseg segment
assume cs:cseg,ds:cseg
org 0 ;Zero, but assemble as BIN or COM
Begin:
mov ah,3
xor bh,bh
int 10h ;Get cursor location.
mov ax,1301h
mov bl,7h ;White on Black
mov bp,offset txt + 7C00h
mov cx,0Fh
int 10h ;Display welcome text.
main:
mov ah,0
int 16h
mov bx,7
mov ah,0Eh
int 10h ;Print keypresses to screen.
jmp main
txt db 'Start typing!', 0Dh, 0Ah
org 510
signature db 55h,0AAh ;Required by some BIOS's.
cseg ends
end Begin
... The Moon is Waxing Gibbous (73% of Full)
--- ifmail v.2.10-tx8.2
---------------
* Origin: (jvahn@short.circuit.com) (1:346/15.1)
|