< -->

;80x30.asm+rusflag
;Переводит экран в текстовый режим 80x30 (шрифт 8x16)
           .model tiny
           .code
           .186
           org 100h
;~
start:
      mov       ax,3
      int       10h

      mov       dx, 3CCh
      in        al, dx
      mov       dl, 0C2h
      or        al, 0C0h
      out       dx, al

      mov       dx, 03D4h
      mov       si, offset crt480
      mov       cx, crt480_l
      rep       outsw

      push      0040h
      pop       es
      mov       byte ptr es:[84h],29

		cld	
		mov	ax, 0B800h
		mov	es, ax
		xor	di, di
		mov	cx, 320h
		mov	ax, 0FDBh
		repe stosw
		mov	ax, 1DBh
		mov	cx, 320h
		repe stosw
		mov	ax, 0CDBh
		mov	cx, 320h
		repe stosw
      ret
crt480   dw     0C11h
         dw     0B06h, 3E07h, 0EA10h, 0DF12h, 0E715h, 0416h
crt480_l = ($-crt480)/2
         end start

Назад