Building an ascii table with 80x25 screen size (2000)
This is the first page...
push ax push bx push cx push dx mov bx, 392 mov byte ptr es:[bx], 'A' mov byte ptr es:[bx+2], 'S' mov byte ptr es:[bx+4], 'C' mov byte ptr es:[bx+6], 'I' mov byte ptr es:[bx+8], 'I' mov byte ptr es:[bx+12], 'T' mov byte ptr es:[bx+14], 'A' mov byte ptr es:[bx+16], 'B' mov byte ptr es:[bx+18], 'L' mov byte ptr es:[bx+20], 'E' ; 480 ; column labels mov bx, 660 mov byte ptr es:[bx], 'D' mov byte ptr es:[bx+2], 'E' mov byte ptr es:[bx+4], 'C' mov byte ptr es:[bx+8], 'H' mov byte ptr es:[bx+10], 'E' mov byte ptr es:[bx+12], 'X' mov byte ptr es:[bx+18], 'B' mov byte ptr es:[bx+20], 'I' mov byte ptr es:[bx+22], 'N' mov byte ptr es:[bx+24], 'A' mov byte ptr es:[bx+26], 'R' mov byte ptr es:[bx+28], 'Y' mov byte ptr es:[bx+34], 'C' mov byte ptr es:[bx+46], 'D' mov byte ptr es:[bx+48], 'E' mov byte ptr es:[bx+50], 'C' mov byte ptr es:[bx+54], 'H' mov byte ptr es:[bx+56], 'E' mov byte ptr es:[bx+58], 'X' mov byte ptr es:[bx+64], 'B' mov byte ptr es:[bx+66], 'I' mov byte ptr es:[bx+68], 'N' mov byte ptr es:[bx+70], 'A' mov byte ptr es:[bx+72], 'R' mov byte ptr es:[bx+74], 'Y' mov byte ptr es:[bx+78], 'C' mov byte ptr es:[bx+90], 'D' mov byte ptr es:[bx+92], 'E' mov byte ptr es:[bx+94], 'C' mov byte ptr es:[bx+98], 'H' mov byte ptr es:[bx+100], 'E' mov byte ptr es:[bx+102], 'X' mov byte ptr es:[bx+108], 'B' mov byte ptr es:[bx+110], 'I' mov byte ptr es:[bx+112], 'N' mov byte ptr es:[bx+114], 'A' mov byte ptr es:[bx+116], 'R' mov byte ptr es:[bx+118], 'Y' mov byte ptr es:[bx+122], 'C' mov bx, 820 c1: MOV CX, 256 ; initialize CX MOV AH, 2 ; set output function MOV DL, 0 ; initialize DL with first ASCII character @LOOP: ; loop label INT 21h INC DL ; increment DL to next ASCII character DEC CX ; decrement CX JNZ @LOOP ; jump to label @LOOP if CX is 0 MOV AH, 4CH ; return control to DOS INT 21H loop c1 pop dx pop cx pop bx pop ax ret
Without c1 I can print the table outline.... but when I have that in the code, the table contents get overwritten..
Originally
Quote
ASCII TABLE
DEC HEX BINARY C DEC HEX BINARY C
〔MENU HELP〕
DEC HEX BINARY C DEC HEX BINARY C
〔MENU HELP〕
Now I am getting
Quote
ASCII TABLE
〔MENU HELP〕
<256 ASCII characters here.....>
〔MENU HELP〕
<256 ASCII characters here.....>
Moreover, how do I print the character one at a time? I want to print the character in the format I set (as shown above...)
Thank you!


Sign In
Create Account

Back to top









