|
-----Original Message----- From: rpg400-l-admin@midrange.com [mailto:rpg400-l-admin@midrange.com]On Behalf Of Jim Langston >Second, you set one pointer to *Null, and usually for pointers this means it is >pointing at memory address 0. not on the as400 >Third, you are setting the second pointer to the address of pBase plus 32, so >it will be pointing at memory address 32. definitely not on the as400 :) >Pointer checking isn't done until a pointer is tried to read from or write to. >You can point a pointer anywhere you want. In the MI functional reference, under ADDSPP - Add space pointer ( sorry, cant find it online ) it says "... Operand 2 ( the source pointer ) must contain a space pointer when the execution of the instruction is initiated..." I think it should signal an exception. Steve
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.