Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
16
Task/Draw-a-pixel/X86-Assembly/draw-a-pixel.x86
Normal file
16
Task/Draw-a-pixel/X86-Assembly/draw-a-pixel.x86
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
.model tiny
|
||||
.code
|
||||
org 100h
|
||||
|
||||
start: mov ax, 0013h ;set 320x200x8 graphic screen
|
||||
int 10h
|
||||
push 0A000h ;point to graphic memory segment
|
||||
pop es
|
||||
mov byte ptr es:[320*100+100], 28h ;draw bright red pixel
|
||||
|
||||
mov ah, 0 ;wait for keystroke
|
||||
int 16h
|
||||
mov ax, 0003h ;restore normal text mode screen
|
||||
int 10h
|
||||
ret ;return to OS
|
||||
end start
|
||||
Loading…
Add table
Add a link
Reference in a new issue