TITLE "MP1 - Douglas Jones, solution B" USE "hawk.macs" INT ITEM1 ; the assignment build a linked list describing this figure: ; ......................................................... ; . +---------------+ +---+ + . ; . | text in a box |------+ | A | | . ; . +---------------+ | | B | +-----------+ . ; . | | | C | | . ; . +-------------------+ +---+ + . ; ......................................................... ; 222222222222222222222 11111 3 ; 44444444444444444 5555555555555 ; numbers below each item give its item number in the list SUBTITLE "constant definitions" ; ASCII codes NUL = 0 CR = 13 LF = 10 ; distinguished pointer value NULL = 0 ; the empty string NONE: B NUL ALIGN 4 SUBTITLE "data structures" ; NEXT X Y WIDTH HEIGHT STRING ITEM1: W ITEM2, 33, 1, 4, 4, S3 S3: ASCII "A",CR,LF,"B",CR,LF,"C",NUL ALIGN 4 ; NEXT X Y WIDTH HEIGHT STRING ITEM2: W ITEM3, 8, 2, 20, 3, NONE ; NEXT X Y WIDTH HEIGHT STRING ITEM3: W ITEM4, 42, 1, 0, 4, NONE ; NEXT X Y WIDTH HEIGHT STRING ITEM4: W ITEM5, 5, 1, 16, 2, S4 S4: ASCII "text in a box",NUL ALIGN 4 ; NEXT X Y WIDTH HEIGHT STRING ITEM5: W NULL, 39, 3, 12, 0, NONE END