pTAL Conversion Guide

Contents
pTAL Conversion Guide527302-002
xvi
Examples (continued)
Examples (continued)
Example 18-19. Call to $FREEZE Routine 18-28
Example 18-20. Call to $HALT Routine 18-29
Example 18-21. Call to $INTERROGATEHIO Routine 18-31
Example 18-22. Call to $INTERROGATEIO Routine 18-33
Example 18-23. Call to $LOCATESPTHDR Routine 18-34
Example 18-24. Call to $LOCKPAGE Routine 18-35
Example 18-25. Call to $MOVEANDCXSUMBYTES Routine 18-37
Example 18-26. Call to $MOVENODUP Routine 18-38
Example 18-27. Call to $READBASELIMIT Routine 18-39
Example 18-28. Call to $READSPT Routine 18-40
Example 18-29. Call to $READTIME Routine 18-41
Example 18-30. Call to $SGBADDR_TO_EXTADDR Routine 18-42
Example 18-31. Call to $SGBADDR_TO_SGWADDR Routine 18-42
Example 18-32. Call to $SGWADDR_TO_EXTADDR Routine 18-43
Example 18-33. Call to $SGWADDR_TO_SGBADDR Routine 18-44
Example 18-34. Call to $STACK_ALLOCATE Routine 18-45
Example 18-35. Call to $TRIGGER Routine 18-49
Example 18-36. Call to $UDIVREM16 Routine 18-50
Example 18-37. Call to $UDIVREM32 Routine 18-52
Example 18-38. Call to $UNLOCKPAGE Routine 18-53
Example 18-39. $WADDR_TO_BADDR Routine 18-54
Example 18-40. $WADDR_TO_EXTADDR Routine 18-54
Example 18-41. Call to $WRITEPTE Routine 18-55
Example 19-1. File for OPTIMIZEFILE Directive 19-23
Example 20-1. OVERFLOW_TRAPS Directive 20-4
Example 20-2. OVERFLOW_TRAPS Procedure Attribute 20-5
Example 20-3. ENABLE_OVERFLOW_TRAPS Block Attribute (TAL Only) 20-7
Example 20-4. ENABLE_OVERFLOW_TRAPS Block Attribute 20-7
Example 20-5. Overflow Traps (TAL Only) 20-13
Example 20-6. Ensuring That Overflow is Detected 20-14
Example 20-7. Testing Condition Code After Assignments (pTAL) 20-18
Example 20-8. Testing $CARRY 20-20
Example 20-9. Testing Hardware Indicators in IF Statements 20-23
Example 20-10. Testing Hardware Indicators in IF Statements (TAL Only) 20-23
Example 20-11. Nesting Condition Code Tests 20-24
Example 20-12. Testing Condition Code for Multiple Values 20-24
Example 20-13. Testing Condition Code for Multiple Values (TAL only) 20-25
Example 20-14. Testing Condition Code for Multiple Values (TAL only) 20-25