LANG.SRC 792 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. ;
  2. ;
  3. ; *** MESSAGE SET for LANGUAGE ***
  4. ;
  5. ;
  6. XDEF LANG_SETP
  7. XDEF LANG_SET_INNERP
  8. XREF ?A5
  9. SECT MESS,,C
  10. INCLUDE SYS.INC
  11. INCLUDE LABEL.INC
  12. INCLUDE EASY_MAC.INC
  13. INCLUDE KNJ.INC
  14. INCLUDE SMACRO.INC
  15. INCLUDE SCODE.INC
  16. LANG_TBL EQU 3D800H
  17. LANG_SETP:
  18. MOVE.L A0,-(SP)
  19. ADDQ.B #1,MESS_BUSY(A5)
  20. MOVE.L MESS_POINT(A5),A0
  21. BSR LANG_SET_INNERP
  22. MOVE.L A0,MESS_POINT(A5)
  23. SUBQ.B #1,MESS_BUSY(A5)
  24. MOVE.L (SP)+,A0
  25. RTS
  26. LANG_SET_INNERP:
  27. MOVE.L A1,-(SP)
  28. ADD.B LANGUAGE(A5),D0
  29. BCC.S LANG_SET_1
  30. ADD.W #100H,D0
  31. LANG_SET_1:
  32. ADD.W D0,D0
  33. ADD.W D0,D0
  34. LEA.L LANG_TBL,A1
  35. MOVE.L 0(A1,D0.W),(A0)+
  36. BPL.S LANG_SET_2
  37. CLR.B -4(A0)
  38. MOVE.L -(A0),A1
  39. MOVE.W (A1)+,D0
  40. JSR.S SET_SOUND
  41. MOVE.L A1,(A0)+
  42. LANG_SET_2:
  43. MOVE.L (SP)+,A1
  44. RTS
  45. INCLUDE WORK.INC
  46.