Advertisement
Glebyshka

ThisShtDoesntWork

Mar 14th, 2021
1,512
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .model small
  2.  
  3. .data
  4. stroka db 'Hello world',10,13,'$'
  5.  
  6. .code
  7. start:
  8.  
  9.   ;      mov ah,2h
  10.   ;      int 16h       ;???????? ???? ???????
  11.  
  12.         ;   test al,00000100B   ;????????? ??? 3 - CTRL
  13.         ;      cmp al,2
  14.         ;     JZ   start     ;???? 0, ?? CTRL ????????
  15.  
  16.                 mov ah,8h ; scan keypad
  17.                 int 21h
  18.  
  19.         cmp al, 20h ; probel check
  20.         je next1
  21.         jmp start
  22. next1:
  23.  
  24.    
  25.        
  26.         mov     ah, 9h  ; ????? ?????????
  27.         mov     bl, 0e9h ; ????? ????? ?? ????? ????
  28.         mov     cx, 20   ; ????????? ?????? 11 ????
  29.         int     10h
  30.  
  31.        
  32.                 mov ah,9h
  33.            lea dx, stroka
  34.         int     21h
  35.         ;     mov     dx, offset CTRL_probel
  36.         ;   int     21h
  37.         ;      jmp start
  38.         ;        ret
  39.  
  40.   mov ax, 4c00h
  41.     int 21h
  42.  
  43. end start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement