TITLE "mp1.a by Douglas W. Jones, Feb. 16, 2014" ; -- Example solution to mp1 NULL = 0 ; value for NULL pointers INT ARRAY ; export ARRAY to the test program ; each array element but the last points to an item. ARRAY: W ITEM1 ; array[0] W ITEM2 ; array[1] W ITEM3 W ITEM4 ; ... W ITEM5 W ITEM6 ; array[5] W NULL ; array[6], a null pointer ; -- the records, all have the same structure: ITEM1: W TEXT1 ; pointer to "Douglas" H 1, 1 ; X = 1, Y = 1 ITEM2: W TEXT2 ; ... to "W." H 9, 1 ITEM3: W TEXT3 ; ... to "Jones" H 12, 1 ITEM4: W TEXT4 ; ... to "Machine" H 6, 2 ITEM5: W TEXT5 ; ... to "Problem" H 14, 2 ITEM6: W TEXT6 ; ... to "1" H 22, 2 ; -- the text is all gathered here to avoid alignment trouble TEXT1: ASCII "Douglas", 0 TEXT2: ASCII "W.", 0 TEXT3: ASCII "Jones", 0 TEXT4: ASCII "Machine", 0 TEXT5: ASCII "Problem", 0 TEXT6: ASCII "1", 0 END