5 ms·
The original comment was a comparison of pointers in C and PEEKs and POKEs in BASIC. So making up stuff about how assembly has 'pointers' or trying to start som
by pvg 8y ago
The original comment was a comparison of pointers in C and PEEKs and POKEs in BASIC. So making up stuff about how assembly has 'pointers' or trying to start some argument about C with a statement nobody made is not really much more directly related to what we're discussing than a comment about the music of the Pointer Sisters.
- pjmlp 8y agoSo back to Basic then, this is Turbo Basic (1987) ' a = *addr a = PEEK (addr%) ' *addr = value POKE addr%, value 'a = addr a = addr 'addr++ INCR addr%, 2 'a = &variable DEF SEG = VARSEG(variable) a = VARPTR(varible) a = VARPTR$(varible) Album, http://www.bitsavers.org/pdf/borland/Borland_Turbo_BASIC_Owners_Handbook_1987.pdf http://www.bitsavers.org/pdf/borland/Borland_Turbo_BASIC_Own... Or to stay with QuickBasic dialects, Freebasic music tunes https://www.freebasic.net/wiki/wikka.php?wakka=TblComparisonC https://www.freebasic.net/wiki/wikka.php?wakka=TblComparison... Which also provides the SIZEOF chord, simplifying the increment operations of memory addresses.