mirror of
https://github.com/vxunderground/MalwareSourceCode.git
synced 2024-12-23 20:05:26 +00:00
33 lines
1.4 KiB
NASM
33 lines
1.4 KiB
NASM
|
; Basic little bitty program for people learning about the different modes
|
|||
|
; you can stick on your monitor. This program will put you into 80*50 on a
|
|||
|
; VGA monitor, and should be 80*43 on an EGA monitor (I dunno, haven't tested
|
|||
|
; it.) Anyways, I tried to comment it so someone not knowing asm would be
|
|||
|
; able to understand it.
|
|||
|
;
|
|||
|
; Coded by The Crypt Keeper/Kevin Marcus
|
|||
|
; You may feel free to do absolutely anything to this code, so long as it is
|
|||
|
; not distributed in a modified state. (Incorporate it in your programs, I
|
|||
|
; don't care. Just do not change >THIS< program.)
|
|||
|
;
|
|||
|
; The Programmer's Paradise. (619)/457-1836
|
|||
|
|
|||
|
IDEAL ; Ideal Mode in TASM is t0tallie /< rad man.
|
|||
|
DOSSEG ; Standard Segment shit.
|
|||
|
MODEL tiny ; What model are we in?!
|
|||
|
DATASEG ; Data Segment starts here, man.
|
|||
|
exitcode db 0 ; 'exitcode' be zer0, man.
|
|||
|
CODESEG ; Code Segment starts here, dude.
|
|||
|
org 100h
|
|||
|
Start:
|
|||
|
mov ax,0003h ; stick 3 into ax.
|
|||
|
int 10h ; Set up 80*25, text mode. Clear the screen, too.
|
|||
|
|
|||
|
mov ax,1112h ; We are gunna use the 8*8 internal font, man.
|
|||
|
int 10h ; Hey man, call the interrupt.
|
|||
|
|
|||
|
Exit:
|
|||
|
|
|||
|
mov ah,4ch ; Lets ditch.
|
|||
|
mov al,[exitcode] ; Make al 0. Why not xor!? Suck a ____.
|
|||
|
int 21h ; "Make it so."
|
|||
|
END Start ; No more program.
|