
I'm looking at IOP.SWDF in the current QPTR manual, the assembly code, obviously! I might want to use it is some potential code for the eComic. However, the documentation is a bit weird:
A1 points to a long word pointer to a table of pointers to sub-window definitions. This pointer may be zero. It is followed by a sub-window record for the main part of the window. The pointers to sub-window definitions are long words, the list is terminated by a zero long word. Each pointer points to a sub-window record.
Am I correct in decoding this to be as follows:
Code: Select all
start
lea tblPtr,a1 ; Pointer to pointer to table
...
tblPtr
dc.l swdfList ; Pointer to sub window definitions
dc.w MAIN_X
dc.w MAIN_Y
dc.w MAIN_X_ORG
dc.w MAIN_Y_ORG
dc.w 0, 1, GREEN, WHITE ; spare, border width, border colour, paper colour
dc.l MAIN_POINTER_SPRITE
swdList
dc.w SUB_1_X
dc.w SUB_1_Y
dc.w SUB_1_X_ORG
dc.w SUB_1_Y_ORG
dc.w 0, 1, GREEN, WHITE
dc.l SUB_1_POINTER_SPRITE
; Repeat as required.
dc.l 0 ; List terminator.
Thanks.
Cheers,
Norm.