Advertisement
Guest User

Untitled

a guest
Feb 28th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 'symulator
  2.  
  3. $regfile = "m8def.dat"
  4. $crystal = 8000000
  5. $baud = 19200
  6. Dim Krk As Byte
  7. Dim Address As Word
  8. Dim Adrl As Byte , Adrh As Byte
  9. Dim V1 As Byte
  10.  
  11. Print "Basmon version 1.01"
  12.  
  13. Do
  14. Krk = Waitkey()
  15. If Krk = "T" Then
  16.    Print Chr(13);
  17. Elseif Krk = "W" Then
  18.    Address = Waitkey()
  19. V1 = Waitkey()
  20. Out Address , V1
  21. Print Chr(13);
  22. Elseif Krk = "R" Then
  23.    Address = Waitkey()
  24.    V1 = Inp(address)
  25. Print Chr(v1);
  26. Elseif Krk = "O" Then
  27.    Adrl = Waitkey()
  28.    Adrh = Waitkey()
  29.    V1 = Waitkey()
  30.    Address = Adrh * 256
  31.    Address = Address + Adrl
  32.    Out Address , V1
  33.    Print Chr(13);
  34. Elseif Krk = "?" Then
  35.    Print "?";
  36. End If
  37. Loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement