Advertisement
Guest User

Untitled

a guest
Dec 4th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. rmSpausdint db 17, "$$+$$$poslinkis$"
  2. rmSpausdint2 db 14, "$$$poslinkis$"
  3.  
  4.  
  5.  
  6. PROC determineRegrm
  7.         push bx
  8.         push dx
  9.         push ax
  10.         mov naudojomBP, 0
  11.         mov rmAdress, 0
  12.         mov ax, 0
  13.     cmp cl, 0
  14.         jne herm
  15.     mov rmSpausdint, 'B'
  16.     mov rmSpausdint+1, 'X'
  17.     mov rmSpausdint+3, 'S'
  18.     mov rmSpausdint+4, 'I'
  19.     mov kurisRM, 1
  20.    
  21.     mov bx, regBX
  22.     mov dx, regSI
  23.     add rmAdress, bx
  24.     add rmAdress, dx
  25.         jmp doRet
  26. herm:
  27.     cmp cl, 1
  28.         jne hemer
  29.     mov rmSpausdint, 'B'
  30.     mov rmSpausdint+1, 'X'
  31.     mov rmSpausdint+3, 'D'
  32.     mov rmSpausdint+4, 'I'
  33.     mov kurisRM, 1
  34.    
  35.     mov bx, regBX
  36.     mov dx, regDI
  37.     add rmAdress, bx
  38.     add rmAdress, dx
  39.         jmp doRet
  40. hemer:
  41.     cmp cl, 2
  42.         jne hemeras
  43.     mov rmSpausdint, 'B'
  44.     mov rmSpausdint+1, 'P'
  45.     mov rmSpausdint+3, 'S'
  46.     mov rmSpausdint+4, 'I'
  47.     mov kurisRM, 1
  48.     mov bx, regBP
  49.     mov dx, regSI
  50.     add rmAdress, bx
  51.     add rmAdress, dx
  52.     mov naudojomBP, 1
  53.         jmp doRet
  54. hemeras:
  55.     cmp cl, 3
  56.         jne hemezasd
  57.     mov rmSpausdint, 'B'
  58.     mov rmSpausdint+1, 'P'
  59.     mov rmSpausdint+3, 'D'
  60.     mov rmSpausdint+4, 'I'
  61.     mov kurisRM, 1
  62.     mov bx, regBP
  63.     mov dx, regDI
  64.     add rmAdress, bx
  65.     add rmAdress, dx
  66.     mov naudojomBP, 1
  67.         jmp doRet
  68. hemezasd:
  69.     cmp cl, 4
  70.         jne herza
  71.     mov rmSpausdint2, 'S'
  72.     mov rmSpausdint2+1, 'I'
  73.     mov kurisRM, 2
  74.     mov dx, regSI
  75.     add rmAdress, dx
  76.         jmp doRet
  77. herza:
  78.     cmp cl, 5
  79.         jne herzet
  80.     mov rmSpausdint2, 'D'
  81.     mov rmSpausdint2+1, 'I'
  82.     mov kurisRM, 2
  83.     mov dx, regDI
  84.     add rmAdress, dx
  85.         jmp doRet
  86. herzet:
  87.     cmp cl, 6
  88.         jne herzemas
  89.     cmp mods, 0
  90.         je votCia
  91.     mov rmSpausdint2, 'B'
  92.     mov rmSpausdint2+1, 'P'
  93.     mov kurisRM, 2
  94.     mov bx, regBP
  95.     add rmAdress, bx
  96.     mov naudojomBP, 1
  97.         jmp doRet
  98. votCia:
  99.     mov al, pjb
  100.     mov ah, pvb
  101.     add rmAdress, ax
  102.         jmp toEnd
  103. herzemas:
  104.     cmp cl, 7
  105.         jne toEnd
  106.     mov rmSpausdint2, 'B'
  107.     mov rmSpausdint2+1, 'X'
  108.     mov kurisRM, 2
  109.     mov bx, regBX
  110.     add rmAdress, bx
  111. doRet:
  112.     cmp mods, 0
  113.         jg cia
  114.         jmp toEnd
  115. cia:
  116.     mov rmSpausdint2+2, '+'
  117.     mov rmSpausdint+5, '+'
  118.     mov al, pjb
  119.     cmp mods, 2
  120.         jne cia2
  121.     mov ah, pvb
  122. cia2:
  123.     add rmAdress, ax
  124. toEnd:
  125.     pop ax
  126.     pop dx
  127.     pop bx
  128.     ret
  129. determineRegrm ENDP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement