If byte 3 is non-zern, it contains an “offset" within the data buffer. Added to the start address of the data buffer, it will give the actual address of the first data byte to be read or written. This is only the case if we have pending PRINT operations (the most recent PRINT ended on ";""or ",") or pending INPUT operations (the most recent INPUT ended on a ""). In all other cases, byte 3 will be zero. C.5.2 BASIC PAB Linkage As mentioned already, BASIC utilizes a simple linked structure for the management of its PAR's. Each PAR contains a link ta the next PAR in the chain. In order to access the chain, we need to have a link to the first PAB in that chain. This link is given in CPU location >3C for GPL programs, which is equal to location >833C in 9900 assembly language. A graphical representation of the link structure could be: CPU RAM Keene ene n nen enn nn = VDP RAM ---------------—=--— > 003C OF AB 0E27 OD1A PAB no. 2s » PAB NO. 3. 7 , ' FIGURE C.5.2 BASIC Link Structure ' PAB no. ds ’ Please note that all PAB's are located in VDP memory, whereas the initial link to them is Yncated in CPI) memory. Also note that although usually the PAB's will be allocated in lexical order, depending upon the program, they can be allocated in any arbitrary order. 48 mm a —_—_— nem =— —_—_ =_—_ mE Oe _ EE a = =) 6) ma)