home *** CD-ROM | disk | FTP | other *** search
/ Collection of Hack-Phreak Scene Programs / cleanhpvac.zip / cleanhpvac / SOURCE.ZIP / 43.ASM < prev    next >
Assembly Source File  |  1991-12-09  |  2KB  |  37 lines

  1. ; Basic little bitty program for people learning about the different modes
  2. ; you can stick on your monitor.  This program will put you into 80*50 on a
  3. ; VGA monitor, and should be 80*43 on an EGA monitor (I dunno, haven't tested
  4. ; it.)  Anyways, I tried to comment it so someone not knowing asm would be 
  5. ; able to understand it.
  6. ;
  7. ; Coded by The Crypt Keeper/Kevin Marcus
  8. ; You may feel free to do absolutely anything to this code, so long as it is
  9. ; not distributed in a modified state.  (Incorporate it in your programs, I
  10. ; don't care.  Just do not change >THIS< program.)
  11. ;
  12. ; The Programmer's Paradise.  (619)/457-1836 
  13.  
  14. IDEAL                     ; Ideal Mode in TASM is t0tallie /< rad man.
  15. DOSSEG                    ; Standard Segment shit.
  16. MODEL tiny                ; What model are we in?!
  17. DATASEG                   ; Data Segment starts here, man.
  18. exitcode db 0             ; 'exitcode' be zer0, man.
  19. CODESEG                   ; Code Segment starts here, dude.
  20.   org 100h
  21. Start:
  22.    mov ax,0003h           ; stick 3 into ax.
  23.    int 10h                ; Set up 80*25, text mode.  Clear the screen, too.
  24.    
  25.    mov ax,1201h           ; Woah!
  26.    mov bl,30h
  27.    int 10h                ; Lets get ready for 80*43 on VGA man.
  28.    
  29.    mov ax,1112h           ; We are gunna use the 8*8 internal font, man.
  30.    int 10h                ; Hey man, call the interrupt.
  31.    
  32. Exit:
  33.    
  34.    mov ah,4ch            ; Lets ditch.
  35.    mov al,[exitcode]     ; Make al 0.  Why not xor!?  Suck a ____.
  36.    int 21h               ; "Make it so."
  37.    END Start             ; No more program.