פורסם 2007 באפריל 1818 שנים ORG 100h ; this directive required for a simple 1 segment .com program. MOV AX, 0B800h ; set AX to hexadecimal value of B800h. MOV DS, AX ; copy value of AX to DS.XOR CX,CX MOV Cl, 255 ; copy to the counter the higest ASCII valuewoot: ; the MOV DL, CL ; set DL to ASCII code of CX. MOV DH, CL ; set DH to binary value. MOV BX, CX ; set BX to CX. MOV [BX], DX ; copy contents of CX to memory at B800:255 LOOP woot ; repeats the drawing of ASCII CX in spot CX in color CXRET ; returns to operating system. why does it print only half of the codes?EDIT:nvm solved
ארכיון
דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.