Advertisement
Ham62

DrawTest.bas

Mar 6th, 2016
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QBasic 1.26 KB | None | 0 0
  1. DECLARE SUB DrawString (X%, Y%, C%, S$)
  2. DEFINT A-Z
  3. SCREEN 13
  4. LINE (0, 0)-(319, 199), &H19, BF
  5.  
  6. FOR X = 0 TO 6000
  7.    CALL DrawString(X, X \ 2, X, "?")
  8. NEXT X
  9.  
  10.  
  11. DEFSNG A-Z
  12. SUB DrawString (X%, Y%, C%, S$)
  13.    DIM ASM(40) AS LONG
  14. ASM(0) = &H1E0660CC
  15. ASM(1) = &HB71130B8
  16. ASM(2) = &H8C10CD03
  17. ASM(3) = &H89C08EC0
  18. ASM(4) = &H8BE589EE
  19. ASM(5) = &HC2692256
  20. ASM(6) = &H46030140
  21. ASM(7) = &HB8C78920
  22. ASM(8) = &HD88EA000
  23. ASM(9) = &H8B185E8B
  24. ASM(10) = &H668E1A4E
  25. ASM(11) = &H1E6E8B1C
  26. ASM(12) = &H8A6400B4
  27. ASM(13) = &HE0C10046
  28. ASM(14) = &HC6015603
  29. ASM(15) = &H8A2608B7
  30. ASM(16) = &H7401A804
  31. ASM(17) = &H75D8803
  32. ASM(18) = &H37402A8
  33. ASM(19) = &HA8065D88
  34. ASM(20) = &H88037404
  35. ASM(21) = &H8A8055D
  36. ASM(22) = &H5D880374
  37. ASM(23) = &H7410A804
  38. ASM(24) = &H35D8803
  39. ASM(25) = &H37420A8
  40. ASM(26) = &HA8025D88
  41. ASM(27) = &H88037440
  42. ASM(28) = &H80A8015D
  43. ASM(29) = &H1D880274
  44. ASM(30) = &H40C78146
  45. ASM(31) = &H75CFFE01
  46. ASM(32) = &HEF815EBD
  47. ASM(33) = &HC7830A00
  48. ASM(34) = &H75494508
  49. ASM(35) = &H61071FA3
  50. ASM(36) = &HCB
  51.  
  52.    DEF SEG = VARSEG(ASM(0))
  53.    'CALL Absolute(BYVAL Y%, BYVAL X%, BYVAL SADD(S$), BYVAL SSEG(S$), BYVAL LEN(S$), BYVAL C%, VARPTR(ASM(0)))
  54.    CALL ABSOLUTE(BYVAL Y%, BYVAL X%, BYVAL SADD(S$), BYVAL SSEG(S$), BYVAL LEN(S$), BYVAL C%, VARPTR(ASM(0)))
  55. END SUB
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement