<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
<channel>
<title>z88dk forums : Mailing Lists</title>
<link>http://www.z88dk.org/forum</link>
<description> z88dk forums</description>
<language>en</language>
<docs>http://backend.userland.com/rss</docs>
<item>
<title>[z88dk-dev] Option for automatic malloc() configuration in Mailing Lists : z88dk-developers</title>
<link>http://www.z88dk.org/forum/viewtopic.php?pid=8631#8631</link>
<guid isPermaLink="false">8631@http://www.z88dk.org/forum</guid>
<description>Topic: [z88dk-dev] Option for automatic malloc() configuration

Message: Hmm. somehow my message was lost, so a new attempt:-----------------------------------------------------------------Hi Stefanowhat do I have to do when compiling for my ZX81sometimes I compile for address 16514 (P file), having the stack behind the program.sometimes I compile for address 32K or 40K, having the stack before the program.Do I have to use different options? Siggi
</description>
<pubDate>Wed, 19 Jun 2013 10:04:12 +0100</pubDate>
</item>
<item>
<title>[z88dk-dev] Option for automatic malloc() configuration in Mailing Lists : z88dk-developers</title>
<link>http://www.z88dk.org/forum/viewtopic.php?pid=8629#8629</link>
<guid isPermaLink="false">8629@http://www.z88dk.org/forum</guid>
<description>Topic: [z88dk-dev] Option for automatic malloc() configuration

Message: The new option is ready !Simplest way to use it:zcc +target (...) -DAMALLOC -lmalloc program.cIn some case (i.e. the ZX Spectrum) it makes no sense to leave space for the stack, because it is normally placed before the compiled program: for such platforms any option will leave the whole memory for malloc(); if the stack is on top of memory then it is possible to roughly tell which portion of the free space is for malloc() and what has to be left for the stack with -DAMALLOC1.. -DAMALLOC3.AMALLOC with no trailing numbers will act as -DAMALLOC3 where applicable.ROM targets and FAR memory models are not supported, use the (very flexible) fuctions declared in malloc.h (see the wiki docs).Since we have a lot of targets, I could not test it everywhere and it is possible that we have special cases which will not work (yet) with the new option.
</description>
<pubDate>Tue, 18 Jun 2013 07:59:46 +0100</pubDate>
</item>
<item>
<title>[Z88dk-commits] CVS: z88dk/lib abc80_crt0.asm, 1.9,
	1.10 ace_crt0.as in Mailing Lists : z88dk-commits</title>
<link>http://www.z88dk.org/forum/viewtopic.php?pid=8628#8628</link>
<guid isPermaLink="false">8628@http://www.z88dk.org/forum</guid>
<description>Topic: [Z88dk-commits] CVS: z88dk/lib abc80_crt0.asm, 1.9,&#160; &#160; 1.10 ace_crt0.as

Message: Update of /cvsroot/z88dk/z88dk/libIn directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv19330/libModified Files:abc80_crt0.asm ace_crt0.asm amalloc.def aquarius_crt0.asmbas_crt0.asm c128_crt0.asm cpc_crt0.asm cpm_crt0.asmenterprise_crt0.asm gal_crt0.asm m5_crt0.asm mc1000_crt0.asmmsx_crt0.asm mtx_crt0.asm mz_crt0.asm nascom_crt0.asmnc100_crt0.asm newbrain_crt0.asm osca_crt0.asm oz_crt0.asmpc6001_crt0.asm pps_crt0.asm rel_crt0.asm sam_crt0.asmsc3000_crt0.asm sorcerer_crt0.asm spec_crt0.asm svi_crt0.asmti82_crt0.asm ti83_crt0.asm ti83p_crt0.asm ti83papp.asmti85_crt0.asm ti86_crt0.asm trs80_crt0.asm ts2068_crt0.asmvz_crt0.asm x07_crt0.asm z88s_crt0.asm zx80_crt0.asmzx81_crt0.asmLog Message:New option for automatic space creation for malloc()Index: abc80_crt0.asm===================================================================RCS file: /cvsroot/z88dk/z88dk/lib/abc80_crt0.asm,vretrieving revision 1.9retrieving revision 1.10diff -C2 -d -r1.9 -r1.10*** abc80_crt0.asm&#160; &#160; 22 Jun 2009 21:20:05 -0000&#160; &#160; 1.9--- abc80_crt0.asm&#160; &#160; 18 Jun 2013 06:11:22 -0000&#160; &#160; 1.10****************** 70,73 ****--- 70,80 ----ld&#160; &#160; &#160; (exitsp),sp+ ; Optional definition for auto MALLOC init+ ; it assumes we have free space between the end of+ ; the compiled program and the stack pointer+ &#160; &#160; IF DEFINED_USING_amalloc+ &#160; &#160; &#160; &#160; INCLUDE &#34;amalloc.def&#34;+ &#160; &#160; ENDIF+IF !DEFINED_nostreamsIF DEFINED_ANSIstdio****************** 149,152 ****--- 156,170 ----heapblocks:&#160; &#160; defw&#160; &#160; 0+ IF DEFINED_USING_amalloc+ XREF ASMTAIL+ XDEF _heap+ ; The heap pointer will be wiped at startup,+ ; but first its value (based on ASMTAIL)+ ; will be kept for sbrk() to setup the malloc area+ _heap:+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw ASMTAIL&#160; &#160; ; Location of the last program byte+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw 0+ ENDIF+; mem stuffbase_graphics:Index: ace_crt0.asm===================================================================RCS file: /cvsroot/z88dk/z88dk/lib/ace_crt0.asm,vretrieving revision 1.10retrieving revision 1.11diff -C2 -d -r1.10 -r1.11*** ace_crt0.asm&#160; &#160; 24 May 2010 14:48:57 -0000&#160; &#160; 1.10--- ace_crt0.asm&#160; &#160; 18 Jun 2013 06:11:22 -0000&#160; &#160; 1.11****************** 76,79 ****--- 76,86 ----ld&#160; &#160; &#160; (exitsp),sp+ ; Optional definition for auto MALLOC init+ ; it assumes we have free space between the end of+ ; the compiled program and the stack pointer+ &#160; &#160; IF DEFINED_USING_amalloc+ &#160; &#160; &#160; &#160; INCLUDE &#34;amalloc.def&#34;+ &#160; &#160; ENDIF+IF !DEFINED_nostreamsIF DEFINED_ANSIstdio****************** 153,156 ****--- 160,174 ----heapblocks:&#160; &#160; defw&#160; &#160; 0+ IF DEFINED_USING_amalloc+ XREF ASMTAIL+ XDEF _heap+ ; The heap pointer will be wiped at startup,+ ; but first its value (based on ASMTAIL)+ ; will be kept for sbrk() to setup the malloc area+ _heap:+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw ASMTAIL&#160; &#160; ; Location of the last program byte+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw 0+ ENDIF+; mem stuffIndex: amalloc.def===================================================================RCS file: /cvsroot/z88dk/z88dk/lib/amalloc.def,vretrieving revision 1.1retrieving revision 1.2diff -C2 -d -r1.1 -r1.2*** amalloc.def&#160; &#160; 14 Jun 2013 16:58:19 -0000&#160; &#160; 1.1--- amalloc.def&#160; &#160; 18 Jun 2013 06:11:22 -0000&#160; &#160; 1.2****************** 17,23 ****-; $Id$push hl--- 17,23 ----; $Id$+ &#160; &#160; ; HL must hold SP or the end of free memorypush hl****************** 53,55 ****LIB sbrk_calleecall&#160; &#160; sbrk_callee---- 53,54 ----Index: aquarius_crt0.asm===================================================================RCS file: /cvsroot/z88dk/z88dk/lib/aquarius_crt0.asm,vretrieving revision 1.8retrieving revision 1.9diff -C2 -d -r1.8 -r1.9*** aquarius_crt0.asm&#160; &#160; 22 Jun 2009 21:20:05 -0000&#160; &#160; 1.8--- aquarius_crt0.asm&#160; &#160; 18 Jun 2013 06:11:23 -0000&#160; &#160; 1.9****************** 53,56 ****--- 53,63 ----ld&#160; &#160; &#160; (exitsp),sp+ ; Optional definition for auto MALLOC init+ ; it assumes we have free space between the end of+ ; the compiled program and the stack pointer+ &#160; &#160; IF DEFINED_USING_amalloc+ &#160; &#160; &#160; &#160; INCLUDE &#34;amalloc.def&#34;+ &#160; &#160; ENDIF+IF !DEFINED_nostreamsIF DEFINED_ANSIstdio****************** 131,134 ****--- 138,152 ----heapblocks:&#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Number of blocks+ IF DEFINED_USING_amalloc+ XREF ASMTAIL+ XDEF _heap+ ; The heap pointer will be wiped at startup,+ ; but first its value (based on ASMTAIL)+ ; will be kept for sbrk() to setup the malloc area+ _heap:+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw ASMTAIL&#160; &#160; ; Location of the last program byte+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw 0+ ENDIF+IF DEFINED_NEED1bitsoundsnd_tick:&#160; &#160; &#160; &#160;defb&#160; &#160; 0&#160; &#160; &#160; &#160;; Sound variableIndex: bas_crt0.asm===================================================================RCS file: /cvsroot/z88dk/z88dk/lib/bas_crt0.asm,vretrieving revision 1.7retrieving revision 1.8diff -C2 -d -r1.7 -r1.8*** bas_crt0.asm&#160; &#160; 22 Jun 2009 21:20:05 -0000&#160; &#160; 1.7--- bas_crt0.asm&#160; &#160; 18 Jun 2013 06:11:23 -0000&#160; &#160; 1.8****************** 41,44 ****--- 41,52 ----ld&#160; &#160; &#160; sp,hlld&#160; &#160; &#160; (exitsp),sp++ ; Optional definition for auto MALLOC init+ ; it assumes we have free space between the end of+ ; the compiled program and the stack pointer+ &#160; &#160; IF DEFINED_USING_amalloc+ &#160; &#160; &#160; &#160; INCLUDE &#34;amalloc.def&#34;+ &#160; &#160; ENDIF+call&#160; &#160; doerrhan&#160; &#160; ;Initialise a laughable error handler****************** 184,187 ****--- 192,206 ----heapblocks:&#160; &#160; defw &#160; &#160; 0&#160; &#160; ; Number of blocks+ IF DEFINED_USING_amalloc+ XREF ASMTAIL+ XDEF _heap+ ; The heap pointer will be wiped at startup,+ ; but first its value (based on ASMTAIL)+ ; will be kept for sbrk() to setup the malloc area+ _heap:+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw ASMTAIL&#160; &#160; ; Location of the last program byte+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw 0+ ENDIF+packintrout:&#160; &#160; defw&#160; &#160; 0&#160; &#160; ; Address of user interrupt routineIndex: c128_crt0.asm===================================================================RCS file: /cvsroot/z88dk/z88dk/lib/c128_crt0.asm,vretrieving revision 1.15retrieving revision 1.16diff -C2 -d -r1.15 -r1.16*** c128_crt0.asm&#160; &#160; 24 Dec 2010 11:59:35 -0000&#160; &#160; 1.15--- c128_crt0.asm&#160; &#160; 18 Jun 2013 06:11:23 -0000&#160; &#160; 1.16****************** 82,85 ****--- 82,92 ----ld&#160; &#160; &#160; (exitsp),sp+ ; Optional definition for auto MALLOC init+ ; it assumes we have free space between the end of+ ; the compiled program and the stack pointer+ &#160; &#160; IF DEFINED_USING_amalloc+ &#160; &#160; &#160; &#160; INCLUDE &#34;amalloc.def&#34;+ &#160; &#160; ENDIF+IF !DEFINED_nostreamsIF DEFINED_ANSIstdio****************** 179,182 ****--- 186,200 ----heapblocks:&#160; &#160; &#160;defw&#160; &#160; 0+ IF DEFINED_USING_amalloc+ XREF ASMTAIL+ XDEF _heap+ ; The heap pointer will be wiped at startup,+ ; but first its value (based on ASMTAIL)+ ; will be kept for sbrk() to setup the malloc area+ _heap:+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw ASMTAIL&#160; &#160; ; Location of the last program byte+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw 0+ ENDIF+; GraphIndex: cpc_crt0.asm===================================================================RCS file: /cvsroot/z88dk/z88dk/lib/cpc_crt0.asm,vretrieving revision 1.17retrieving revision 1.18diff -C2 -d -r1.17 -r1.18*** cpc_crt0.asm&#160; &#160; 5 Mar 2012 20:44:41 -0000&#160; &#160; 1.17--- cpc_crt0.asm&#160; &#160; 18 Jun 2013 06:11:23 -0000&#160; &#160; 1.18****************** 79,82 ****--- 79,90 ----ld&#160; &#160; &#160; (firmware_af),bc&#160; &#160; &#160; &#160; ; keep F', otherwise crashex&#160; &#160; &#160; af,af++ ; Optional definition for auto MALLOC init+ ; it assumes we have free space between the end of+ ; the compiled program and the stack pointer+ &#160; &#160; IF DEFINED_USING_amalloc+ &#160; &#160; &#160; &#160; INCLUDE &#34;amalloc.def&#34;+ &#160; &#160; ENDIF+IF !DEFINED_nostreamsIF DEFINED_ANSIstdio****************** 176,179 ****--- 184,197 ----heaplast:&#160; &#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Address of last block on heapheapblocks:&#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Number of blocks+ IF DEFINED_USING_amalloc+ XREF ASMTAIL+ XDEF _heap+ ; The heap pointer will be wiped at startup,+ ; but first its value (based on ASMTAIL)+ ; will be kept for sbrk() to setup the malloc area+ _heap:+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw ASMTAIL&#160; &#160; ; Location of the last program byte+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw 0+ ENDIFdefm&#160; &#160; &#34;Small C+ CPC&#34;Index: cpm_crt0.asm===================================================================RCS file: /cvsroot/z88dk/z88dk/lib/cpm_crt0.asm,vretrieving revision 1.20retrieving revision 1.21diff -C2 -d -r1.20 -r1.21*** cpm_crt0.asm&#160; &#160; 13 Jun 2013 17:25:59 -0000&#160; &#160; 1.20--- cpm_crt0.asm&#160; &#160; 18 Jun 2013 06:11:23 -0000&#160; &#160; 1.21****************** 101,131 ****; the compiled program and the stack pointerIF DEFINED_USING_amalloc! &#160; &#160; push hl!! &#160; &#160; ld&#160; &#160; hl,_heap! &#160; &#160; ld&#160; &#160; c,(hl)! &#160; &#160; inc&#160; &#160; hl! &#160; &#160; ld&#160; &#160; b,(hl)! &#160; &#160; inc bc! &#160; &#160; ; compact way to do &#34;mallinit()&#34;! &#160; &#160; xor&#160; &#160; a! &#160; &#160; ld&#160; &#160; (hl),a! &#160; &#160; dec hl! &#160; &#160; ld&#160; &#160; (hl),a!! &#160; &#160; pop hl&#160; &#160; ; sp! &#160; &#160; sbc hl,bc&#160; &#160; ; hl = total free memory! &#160; &#160; ld d,h! &#160; &#160; ld e,l! &#160; &#160; srl d! &#160; &#160; rr e! &#160; &#160; srl d! &#160; &#160; rr e! &#160; &#160; sbc hl,de&#160; &#160; ;&#160; keep 2/3 of free memory for the heap, and the remaining space for stack!! &#160; &#160; push bc ; main address for malloc area! &#160; &#160; push hl&#160; &#160; ; area size! &#160; &#160; LIB sbrk_callee! &#160; &#160; call&#160; &#160; sbrk_calleeENDIF--- 101,105 ----; the compiled program and the stack pointerIF DEFINED_USING_amalloc!&#160; &#160; &#160;INCLUDE &#34;amalloc.def&#34;ENDIF****************** 342,346 ****; but first its value (based on ASMTAIL); will be kept for sbrk() to setup the malloc area! ._heapdefw ASMTAIL&#160; &#160; ; Location of the last program bytedefw 0--- 316,320 ----; but first its value (based on ASMTAIL); will be kept for sbrk() to setup the malloc area! _heap:defw ASMTAIL&#160; &#160; ; Location of the last program bytedefw 0Index: enterprise_crt0.asm===================================================================RCS file: /cvsroot/z88dk/z88dk/lib/enterprise_crt0.asm,vretrieving revision 1.11retrieving revision 1.12diff -C2 -d -r1.11 -r1.12*** enterprise_crt0.asm&#160; &#160; 1 Apr 2011 06:50:45 -0000&#160; &#160; 1.11--- enterprise_crt0.asm&#160; &#160; 18 Jun 2013 06:11:23 -0000&#160; &#160; 1.12****************** 108,112 ****defb&#160; &#160; $eb,$04&#160; &#160; &#160; &#160; ;MS DOS protection... JMPS to MS-DOS message if Intelex&#160; &#160; de,hl! &#160; &#160; jp&#160; &#160; begin&#160; &#160; &#160; &#160; ;First decent instruction for Z80, it survived up to here !defb&#160; &#160; $b4,$09&#160; &#160; &#160; &#160; ;DOS protection... MOV AH,9 (Err msg for MS-DOS)defb&#160; &#160; $ba--- 108,112 ----defb&#160; &#160; $eb,$04&#160; &#160; &#160; &#160; ;MS DOS protection... JMPS to MS-DOS message if Intelex&#160; &#160; de,hl! &#160; &#160; jp&#160; &#160; begin&#160; &#160; &#160; &#160; ;First decent instruction for Z80, if survived up to here !defb&#160; &#160; $b4,$09&#160; &#160; &#160; &#160; ;DOS protection... MOV AH,9 (Err msg for MS-DOS)defb&#160; &#160; $ba****************** 163,168 ****! ;&#160; &#160; &#160; &#160; ld&#160; &#160; &#160; hl,0! ;&#160; &#160; &#160; &#160; add&#160; &#160; &#160;hl,sp;&#160; &#160; &#160; &#160; ld&#160; &#160; &#160; (start1+1),hlld&#160; &#160; &#160; (start1+1),sp--- 163,168 ----!&#160; &#160; &#160; &#160; &#160;ld&#160; &#160; &#160; hl,0!&#160; &#160; &#160; &#160; &#160;add&#160; &#160; &#160;hl,sp;&#160; &#160; &#160; &#160; ld&#160; &#160; &#160; (start1+1),hlld&#160; &#160; &#160; (start1+1),sp****************** 172,175 ****--- 172,182 ----ld&#160; &#160; &#160; (exitsp),sp+ ; Optional definition for auto MALLOC init+ ; it assumes we have free space between the end of+ ; the compiled program and the stack pointer+ &#160; &#160; IF DEFINED_USING_amalloc+ &#160; &#160; &#160; &#160; INCLUDE &#34;amalloc.def&#34;+ &#160; &#160; ENDIF+IF !DEFINED_nostreamsIF DEFINED_ANSIstdio****************** 283,286 ****--- 290,303 ----heapblocks:&#160; &#160; defw&#160; &#160; 0+ IF DEFINED_USING_amalloc+ XREF ASMTAIL+ XDEF _heap+ ; The heap pointer will be wiped at startup,+ ; but first its value (based on ASMTAIL)+ ; will be kept for sbrk() to setup the malloc area+ _heap:+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw ASMTAIL&#160; &#160; ; Location of the last program byte+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw 0+ ENDIF; mem stuffIndex: gal_crt0.asm===================================================================RCS file: /cvsroot/z88dk/z88dk/lib/gal_crt0.asm,vretrieving revision 1.4retrieving revision 1.5diff -C2 -d -r1.4 -r1.5*** gal_crt0.asm&#160; &#160; 22 Jun 2009 21:20:05 -0000&#160; &#160; 1.4--- gal_crt0.asm&#160; &#160; 18 Jun 2013 06:11:23 -0000&#160; &#160; 1.5****************** 54,57 ****--- 54,64 ----ld&#160; &#160; &#160; (exitsp),sp+ ; Optional definition for auto MALLOC init+ ; it assumes we have free space between the end of+ ; the compiled program and the stack pointer+ &#160; &#160; IF DEFINED_USING_amalloc+ &#160; &#160; &#160; &#160; INCLUDE &#34;amalloc.def&#34;+ &#160; &#160; ENDIF+IF !DEFINED_nostreamsIF DEFINED_ANSIstdio****************** 133,140 ****exitcount:&#160; &#160; &#160; defb&#160; &#160; 0&#160; &#160; &#160; &#160;; How many routines on the atexit() stack-heaplast:&#160; &#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Address of last block on heapheapblocks:&#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Number of blocksIF DEFINED_NEED1bitsoundsnd_tick:&#160; &#160; &#160; &#160;defb&#160; &#160; 0&#160; &#160; &#160; &#160;; Sound variable--- 140,157 ----exitcount:&#160; &#160; &#160; defb&#160; &#160; 0&#160; &#160; &#160; &#160;; How many routines on the atexit() stackheaplast:&#160; &#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Address of last block on heapheapblocks:&#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Number of blocks+ IF DEFINED_USING_amalloc+ XREF ASMTAIL+ XDEF _heap+ ; The heap pointer will be wiped at startup,+ ; but first its value (based on ASMTAIL)+ ; will be kept for sbrk() to setup the malloc area+ _heap:+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw ASMTAIL&#160; &#160; ; Location of the last program byte+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw 0+ ENDIF+IF DEFINED_NEED1bitsoundsnd_tick:&#160; &#160; &#160; &#160;defb&#160; &#160; 0&#160; &#160; &#160; &#160;; Sound variableIndex: m5_crt0.asm===================================================================RCS file: /cvsroot/z88dk/z88dk/lib/m5_crt0.asm,vretrieving revision 1.11retrieving revision 1.12diff -C2 -d -r1.11 -r1.12*** m5_crt0.asm&#160; &#160; 13 Jul 2010 06:16:53 -0000&#160; &#160; 1.11--- m5_crt0.asm&#160; &#160; 18 Jun 2013 06:11:23 -0000&#160; &#160; 1.12****************** 87,90 ****--- 87,97 ----ld&#160; &#160; &#160; (exitsp),sp+ ; Optional definition for auto MALLOC init+ ; it assumes we have free space between the end of+ ; the compiled program and the stack pointer+ &#160; &#160; IF DEFINED_USING_amalloc+ &#160; &#160; &#160; &#160; INCLUDE &#34;amalloc.def&#34;+ &#160; &#160; ENDIF+exxpush&#160; &#160; hl****************** 176,179 ****--- 183,197 ----heapblocks:&#160; &#160; defw&#160; &#160; 0+ IF DEFINED_USING_amalloc+ XREF ASMTAIL+ XDEF _heap+ ; The heap pointer will be wiped at startup,+ ; but first its value (based on ASMTAIL)+ ; will be kept for sbrk() to setup the malloc area+ _heap:+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw ASMTAIL&#160; &#160; ; Location of the last program byte+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw 0+ ENDIF+; Graphics stuffIndex: mc1000_crt0.asm===================================================================RCS file: /cvsroot/z88dk/z88dk/lib/mc1000_crt0.asm,vretrieving revision 1.6retrieving revision 1.7diff -C2 -d -r1.6 -r1.7*** mc1000_crt0.asm&#160; &#160; 15 Mar 2013 17:33:41 -0000&#160; &#160; 1.6--- mc1000_crt0.asm&#160; &#160; 18 Jun 2013 06:11:23 -0000&#160; &#160; 1.7****************** 303,307 ****;call&#160; &#160; $c021&#160; &#160; &#160; ; setup text page (ptr in HL)!call&#160; &#160; _maincleanup:--- 303,327 ----;call&#160; &#160; $c021&#160; &#160; &#160; ; setup text page (ptr in HL)! &#160; &#160; &#160; &#160; ld&#160; &#160; &#160; &#160; (exitsp),sp!! ; Optional definition for auto MALLOC init! ; it assumes we have free space between the end of! ; the compiled program and the stack pointer! &#160; &#160; IF DEFINED_USING_amalloc! &#160; &#160; &#160; &#160; INCLUDE &#34;amalloc.def&#34;! &#160; &#160; ENDIF!! IF !DEFINED_nostreams! IF DEFINED_ANSIstdio! ; Set up the std* stuff so we can be called again! &#160; &#160; ld&#160; &#160; hl,__sgoioblk+2! &#160; &#160; ld&#160; &#160; (hl),19&#160; &#160; ;stdin! &#160; &#160; ld&#160; &#160; hl,__sgoioblk+6! &#160; &#160; ld&#160; &#160; (hl),21&#160; &#160; ;stdout! &#160; &#160; ld&#160; &#160; hl,__sgoioblk+10! &#160; &#160; ld&#160; &#160; (hl),21&#160; &#160; ;stderr! ENDIF! ENDIF!call&#160; &#160; _maincleanup:****************** 582,589 ****exitcount:&#160; &#160; &#160; defb&#160; &#160; 0&#160; &#160; &#160; &#160;; How many routines on the atexit() stack-heaplast:&#160; &#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Address of last block on heapheapblocks:&#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Number of blocksIF DEFINED_NEED1bitsoundsnd_tick:&#160; &#160; defb&#160; &#160; 0&#160; &#160; ; Sound variable--- 602,619 ----exitcount:&#160; &#160; &#160; defb&#160; &#160; 0&#160; &#160; &#160; &#160;; How many routines on the atexit() stackheaplast:&#160; &#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Address of last block on heapheapblocks:&#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Number of blocks+ IF DEFINED_USING_amalloc+ XREF ASMTAIL+ XDEF _heap+ ; The heap pointer will be wiped at startup,+ ; but first its value (based on ASMTAIL)+ ; will be kept for sbrk() to setup the malloc area+ _heap:+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw ASMTAIL&#160; &#160; ; Location of the last program byte+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw 0+ ENDIF+IF DEFINED_NEED1bitsoundsnd_tick:&#160; &#160; defb&#160; &#160; 0&#160; &#160; ; Sound variableIndex: msx_crt0.asm===================================================================RCS file: /cvsroot/z88dk/z88dk/lib/msx_crt0.asm,vretrieving revision 1.24retrieving revision 1.25diff -C2 -d -r1.24 -r1.25*** msx_crt0.asm&#160; &#160; 4 Jun 2013 11:41:13 -0000&#160; &#160; 1.24--- msx_crt0.asm&#160; &#160; 18 Jun 2013 06:11:23 -0000&#160; &#160; 1.25****************** 103,106 ****--- 103,113 ----ld&#160; &#160; &#160; (exitsp),sp+ ; Optional definition for auto MALLOC init+ ; it assumes we have free space between the end of+ ; the compiled program and the stack pointer+ &#160; &#160; IF DEFINED_USING_amalloc+ &#160; &#160; &#160; &#160; INCLUDE &#34;amalloc.def&#34;+ &#160; &#160; ENDIF+IF !DEFINED_nostreamsIF DEFINED_ANSIstdio****************** 368,371 ****--- 375,388 ----heapblocks:&#160; &#160; defw&#160; &#160; 0+ IF DEFINED_USING_amalloc+ XREF ASMTAIL+ XDEF _heap+ ; The heap pointer will be wiped at startup,+ ; but first its value (based on ASMTAIL)+ ; will be kept for sbrk() to setup the malloc area+ _heap:+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw ASMTAIL&#160; &#160; ; Location of the last program byte+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw 0+ ENDIF; mem stuffIndex: mtx_crt0.asm===================================================================RCS file: /cvsroot/z88dk/z88dk/lib/mtx_crt0.asm,vretrieving revision 1.2retrieving revision 1.3diff -C2 -d -r1.2 -r1.3*** mtx_crt0.asm&#160; &#160; 10 May 2011 12:15:08 -0000&#160; &#160; 1.2--- mtx_crt0.asm&#160; &#160; 18 Jun 2013 06:11:23 -0000&#160; &#160; 1.3****************** 90,93 ****--- 90,100 ----+ ; Optional definition for auto MALLOC init+ ; it assumes we have free space between the end of+ ; the compiled program and the stack pointer+ &#160; &#160; IF DEFINED_USING_amalloc+ &#160; &#160; &#160; &#160; INCLUDE &#34;amalloc.def&#34;+ &#160; &#160; ENDIF+IF !DEFINED_nostreamsIF DEFINED_ANSIstdio****************** 196,199 ****--- 203,216 ----heapblocks:&#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Number of blocks+ IF DEFINED_USING_amalloc+ XREF ASMTAIL+ XDEF _heap+ ; The heap pointer will be wiped at startup,+ ; but first its value (based on ASMTAIL)+ ; will be kept for sbrk() to setup the malloc area+ _heap:+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw ASMTAIL&#160; &#160; ; Location of the last program byte+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw 0+ ENDIFIF DEFINED_NEED1bitsoundIndex: mz_crt0.asm===================================================================RCS file: /cvsroot/z88dk/z88dk/lib/mz_crt0.asm,vretrieving revision 1.11retrieving revision 1.12diff -C2 -d -r1.11 -r1.12*** mz_crt0.asm&#160; &#160; 7 Jun 2011 06:15:33 -0000&#160; &#160; 1.11--- mz_crt0.asm&#160; &#160; 18 Jun 2013 06:11:23 -0000&#160; &#160; 1.12****************** 63,66 ****--- 63,73 ----ld&#160; &#160; &#160; (exitsp),sp+ ; Optional definition for auto MALLOC init+ ; it assumes we have free space between the end of+ ; the compiled program and the stack pointer+ &#160; &#160; IF DEFINED_USING_amalloc+ &#160; &#160; &#160; &#160; INCLUDE &#34;amalloc.def&#34;+ &#160; &#160; ENDIF+IF !DEFINED_nostreamsIF DEFINED_ANSIstdio****************** 141,148 ****exitcount:&#160; &#160; &#160; defb&#160; &#160; 0&#160; &#160; &#160; &#160;; How many routines on the atexit() stack-heaplast:&#160; &#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Address of last block on heapheapblocks:&#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Number of blocksIF DEFINED_NEED1bitsoundsnd_tick:&#160; &#160; defb&#160; &#160; 0&#160; &#160; ; Sound variable--- 148,165 ----exitcount:&#160; &#160; &#160; defb&#160; &#160; 0&#160; &#160; &#160; &#160;; How many routines on the atexit() stackheaplast:&#160; &#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Address of last block on heapheapblocks:&#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Number of blocks+ IF DEFINED_USING_amalloc+ XREF ASMTAIL+ XDEF _heap+ ; The heap pointer will be wiped at startup,+ ; but first its value (based on ASMTAIL)+ ; will be kept for sbrk() to setup the malloc area+ _heap:+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw ASMTAIL&#160; &#160; ; Location of the last program byte+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw 0+ ENDIF+IF DEFINED_NEED1bitsoundsnd_tick:&#160; &#160; defb&#160; &#160; 0&#160; &#160; ; Sound variableIndex: nascom_crt0.asm===================================================================RCS file: /cvsroot/z88dk/z88dk/lib/nascom_crt0.asm,vretrieving revision 1.7retrieving revision 1.8diff -C2 -d -r1.7 -r1.8*** nascom_crt0.asm&#160; &#160; 22 Jun 2009 21:20:05 -0000&#160; &#160; 1.7--- nascom_crt0.asm&#160; &#160; 18 Jun 2013 06:11:23 -0000&#160; &#160; 1.8****************** 71,74 ****--- 71,81 ----ld&#160; &#160; &#160; (exitsp),sp+ ; Optional definition for auto MALLOC init+ ; it assumes we have free space between the end of+ ; the compiled program and the stack pointer+ &#160; &#160; IF DEFINED_USING_amalloc+ &#160; &#160; &#160; &#160; INCLUDE &#34;amalloc.def&#34;+ &#160; &#160; ENDIF+IF !DEFINED_nostreamsIF DEFINED_ANSIstdio****************** 162,167 ****heapblocks:&#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Number of blocks!&#160; &#160; &#160; &#160; &#160; &#160; &#160; defm&#160; &#34;Small C+ NASCOM&#34;&#160; &#160; ;Unnecessary file signature! &#160; &#160; &#160; &#160; defb&#160; &#160; 0;-------------------------- 169,185 ----heapblocks:&#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Number of blocks! IF DEFINED_USING_amalloc! XREF ASMTAIL! XDEF _heap! ; The heap pointer will be wiped at startup,! ; but first its value (based on ASMTAIL)! ; will be kept for sbrk() to setup the malloc area! _heap:!&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw ASMTAIL&#160; &#160; ; Location of the last program byte!&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw 0! ENDIF!!&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defm&#160; &#34;Small C+ NASCOM&#34;&#160; &#160; ;Unnecessary file signature!&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defb&#160; &#160; 0;-----------------------Index: nc100_crt0.asm===================================================================RCS file: /cvsroot/z88dk/z88dk/lib/nc100_crt0.asm,vretrieving revision 1.8retrieving revision 1.9diff -C2 -d -r1.8 -r1.9*** nc100_crt0.asm&#160; &#160; 22 Jun 2009 21:20:05 -0000&#160; &#160; 1.8--- nc100_crt0.asm&#160; &#160; 18 Jun 2013 06:11:23 -0000&#160; &#160; 1.9****************** 26,53 ****;--------! &#160; &#160; XREF&#160; &#160; _main&#160; &#160; &#160; &#160; ;main() is always external to crt0 code!&#160; &#160; &#160; &#160; &#160;XDEF&#160; &#160; cleanup&#160; &#160; &#160; &#160; ;jp'd to by exit()!&#160; &#160; &#160; &#160; &#160;XDEF&#160; &#160; l_dcal&#160; &#160; &#160; &#160; ;jp(hl)!&#160; &#160; &#160; &#160; &#160;XDEF&#160; &#160; _std_seed&#160; &#160; ;Integer rand() seed! &#160; &#160; XDEF&#160; &#160; _vfprintf&#160; &#160; ;jp to the printf() core!&#160; &#160; &#160; &#160; &#160;XDEF&#160; &#160; exitsp&#160; &#160; &#160; &#160; ;atexit() variables!&#160; &#160; &#160; &#160; &#160;XDEF&#160; &#160; exitcount!&#160; &#160; &#160; &#160; &#160; &#160; XDEF&#160; &#160; heaplast&#160; &#160; ;Near malloc heap variables! &#160; &#160; XDEF&#160; &#160; heapblocks!&#160; &#160; &#160; &#160; &#160;XDEF&#160; &#160; __sgoioblk&#160; &#160; ;stdio info block! &#160; &#160; XDEF&#160; &#160; base_graphics&#160; &#160; ;Graphical variables! &#160; &#160; XDEF&#160; &#160; coords-&#160; &#160; &#160; &#160; &#160;org&#160; &#160; &#160;$C000! &#160; &#160; jp&#160; &#160; start! &#160; &#160; defs&#160; &#160; 509&#160; &#160; &#160; &#160; ;Waste 509 bytes of space;----------- 26,60 ----;--------! &#160; &#160; &#160; &#160; XREF&#160; &#160; _main&#160; &#160; &#160; &#160; ;main() is always external to crt0 code! &#160; &#160; &#160; &#160; XDEF&#160; &#160; cleanup&#160; &#160; &#160; &#160; ;jp'd to by exit()! &#160; &#160; &#160; &#160; XDEF&#160; &#160; l_dcal&#160; &#160; &#160; &#160; ;jp(hl)! &#160; &#160; &#160; &#160; XDEF&#160; &#160; _std_seed&#160; &#160; ;Integer rand() seed! &#160; &#160; &#160; &#160; XDEF&#160; &#160; _vfprintf&#160; &#160; ;jp to the printf() core! &#160; &#160; &#160; &#160; XDEF&#160; &#160; exitsp&#160; &#160; &#160; &#160; ;atexit() variables! &#160; &#160; &#160; &#160; XDEF&#160; &#160; exitcount! &#160; &#160; &#160; &#160; XDEF&#160; &#160; heaplast&#160; &#160; ;Near malloc heap variables! &#160; &#160; &#160; &#160; XDEF&#160; &#160; heapblocks! &#160; &#160; &#160; &#160; XDEF&#160; &#160; __sgoioblk&#160; &#160; ;stdio info block! &#160; &#160; &#160; &#160; XDEF&#160; &#160; base_graphics&#160; &#160; ;Graphical variables! &#160; &#160; &#160; &#160; XDEF&#160; &#160; coords! IF (startup=2)!! &#160; &#160; &#160; &#160; org&#160; &#160; &#160;$8C00! &#160; &#160; &#160; &#160; jp&#160; &#160; start!! ELSE!! &#160; &#160; &#160; &#160; org&#160; &#160; &#160;$C000! &#160; &#160; &#160; &#160; jp&#160; &#160; start! &#160; &#160; &#160; &#160; defs&#160; &#160; 509&#160; &#160; &#160; &#160; ;Waste 509 bytes of space;--------****************** 60,69 ****defb&#160; &#160; 0,0start:&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; ;Entry point at $c2220! &#160; &#160; ld&#160; &#160; (start+1),sp&#160; &#160; ;Save entry spld&#160; &#160; &#160; hl,-64&#160; &#160; &#160; &#160; ;Create the atexit stackadd&#160; &#160; &#160;hl,spld&#160; &#160; &#160; sp,hlld&#160; &#160; &#160; (exitsp),spIF !DEFINED_nostreamsIF DEFINED_ANSIstdio--- 67,87 ----defb&#160; &#160; 0,0+ ENDIF++start:&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; ;Entry point at $c2220!&#160; &#160; &#160; &#160; &#160;ld&#160; &#160; &#160; (start1+1),sp&#160; &#160;;Save entry stackld&#160; &#160; &#160; hl,-64&#160; &#160; &#160; &#160; ;Create the atexit stackadd&#160; &#160; &#160;hl,spld&#160; &#160; &#160; sp,hlld&#160; &#160; &#160; (exitsp),sp++ ; Optional definition for auto MALLOC init+ ; it assumes we have free space between the end of+ ; the compiled program and the stack pointer+ &#160; &#160; IF DEFINED_USING_amalloc+ &#160; &#160; &#160; &#160; INCLUDE &#34;amalloc.def&#34;+ &#160; &#160; ENDIF+IF !DEFINED_nostreamsIF DEFINED_ANSIstdio****************** 86,95 ****ENDIFENDIF- &#160; &#160; exx&#160; &#160; &#160; &#160; &#160; &#160; ;???? Hangover from ZX code?- &#160; &#160; ld&#160; &#160; hl,10072- &#160; &#160; exxpop&#160; &#160; bc! start1:&#160; &#160; ld&#160; &#160; sp,0!&#160; &#160; &#160; &#160; &#160;retl_dcal:&#160; &#160; jp&#160; &#160; (hl)--- 104,111 ----ENDIFENDIFpop&#160; &#160; bc! start1:! &#160; &#160; ld&#160; &#160; sp,0! &#160; &#160; retl_dcal:&#160; &#160; jp&#160; &#160; (hl)****************** 136,141 ****heapblocks:&#160; &#160; defw&#160; &#160; 0! base_graphics:&#160; &#160; defw&#160; &#160; 0&#160; &#160; ;Graphics variables! coords:&#160; &#160; &#160; &#160; defw&#160; &#160; 0defm&#160; &#160; &#34;Small C+ nc100&#34;--- 152,168 ----heapblocks:&#160; &#160; defw&#160; &#160; 0! IF DEFINED_USING_amalloc! XREF ASMTAIL! XDEF _heap! ; The heap pointer will be wiped at startup,! ; but first its value (based on ASMTAIL)! ; will be kept for sbrk() to setup the malloc area! _heap:!&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw ASMTAIL&#160; &#160; ; Location of the last program byte!&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw 0! ENDIF!! base_graphics:&#160; defw&#160; &#160; 0&#160; &#160; ;Graphics variables! coords:&#160; &#160; &#160; &#160; &#160;defw&#160; &#160; 0defm&#160; &#160; &#34;Small C+ nc100&#34;Index: newbrain_crt0.asm===================================================================RCS file: /cvsroot/z88dk/z88dk/lib/newbrain_crt0.asm,vretrieving revision 1.7retrieving revision 1.8diff -C2 -d -r1.7 -r1.8*** newbrain_crt0.asm&#160; &#160; 22 Jun 2009 21:20:05 -0000&#160; &#160; 1.7--- newbrain_crt0.asm&#160; &#160; 18 Jun 2013 06:11:23 -0000&#160; &#160; 1.8****************** 51,59 ****start:!&#160; &#160; &#160; &#160; &#160;ld&#160; &#160; &#160; (start1+1),sp&#160; &#160; ;Save entry stack!&#160; &#160; &#160; &#160; &#160;ld&#160; &#160; &#160; hl,-64add&#160; &#160; &#160;hl,spld&#160; &#160; &#160; sp,hlld&#160; &#160; &#160; (exitsp),spIF (startup=2)--- 51,66 ----start:!&#160; &#160; &#160; &#160; &#160;ld&#160; &#160; &#160; (start1+1),sp&#160; &#160;;Save entry stack!&#160; &#160; &#160; &#160; &#160;ld&#160; &#160; &#160; hl,-64&#160; &#160; &#160; &#160; ;Create the atexit stackadd&#160; &#160; &#160;hl,spld&#160; &#160; &#160; sp,hlld&#160; &#160; &#160; (exitsp),sp++ ; Optional definition for auto MALLOC init+ ; it assumes we have free space between the end of+ ; the compiled program and the stack pointer+ &#160; &#160; IF DEFINED_USING_amalloc+ &#160; &#160; &#160; &#160; INCLUDE &#34;amalloc.def&#34;+ &#160; &#160; ENDIFIF (startup=2)****************** 190,197 ****exitcount:&#160; &#160; &#160; defb&#160; &#160; 0&#160; &#160; &#160; &#160;; How many routines on the atexit() stack-heaplast:&#160; &#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Address of last block on heapheapblocks:&#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Number of blocksIF DEFINED_NEED1bitsoundsnd_tick:&#160; &#160; defb&#160; &#160; 0&#160; &#160; ; Sound variable--- 197,214 ----exitcount:&#160; &#160; &#160; defb&#160; &#160; 0&#160; &#160; &#160; &#160;; How many routines on the atexit() stackheaplast:&#160; &#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Address of last block on heapheapblocks:&#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Number of blocks+ IF DEFINED_USING_amalloc+ XREF ASMTAIL+ XDEF _heap+ ; The heap pointer will be wiped at startup,+ ; but first its value (based on ASMTAIL)+ ; will be kept for sbrk() to setup the malloc area+ _heap:+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw ASMTAIL&#160; &#160; ; Location of the last program byte+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw 0+ ENDIF+IF DEFINED_NEED1bitsoundsnd_tick:&#160; &#160; defb&#160; &#160; 0&#160; &#160; ; Sound variableIndex: osca_crt0.asm===================================================================RCS file: /cvsroot/z88dk/z88dk/lib/osca_crt0.asm,vretrieving revision 1.22retrieving revision 1.23diff -C2 -d -r1.22 -r1.23*** osca_crt0.asm&#160; &#160; 14 Jun 2013 16:58:19 -0000&#160; &#160; 1.22--- osca_crt0.asm&#160; &#160; 18 Jun 2013 06:11:23 -0000&#160; &#160; 1.23****************** 495,499 ****; but first its value (based on ASMTAIL); will be kept for sbrk() to setup the malloc area! ._heapdefw ASMTAIL&#160; &#160; ; Location of the last program bytedefw 0--- 495,499 ----; but first its value (based on ASMTAIL); will be kept for sbrk() to setup the malloc area! _heap:defw ASMTAIL&#160; &#160; ; Location of the last program bytedefw 0Index: oz_crt0.asm===================================================================RCS file: /cvsroot/z88dk/z88dk/lib/oz_crt0.asm,vretrieving revision 1.9retrieving revision 1.10diff -C2 -d -r1.9 -r1.10*** oz_crt0.asm&#160; &#160; 30 May 2013 06:34:35 -0000&#160; &#160; 1.9--- oz_crt0.asm&#160; &#160; 18 Jun 2013 06:11:23 -0000&#160; &#160; 1.10****************** 202,205 ****--- 202,212 ----ld&#160; &#160; &#160; (exitsp),sp+ ; Optional definition for auto MALLOC init+ ; it assumes we have free space between the end of+ ; the compiled program and the stack pointer+ &#160; &#160; IF DEFINED_USING_amalloc+ &#160; &#160; &#160; &#160; INCLUDE &#34;amalloc.def&#34;+ &#160; &#160; ENDIF+IF !DEFINED_nostreamsIF DEFINED_ANSIstdio****************** 527,533 ****exitcount:&#160; &#160; &#160; defb&#160; &#160; 0&#160; &#160; &#160; &#160;; How many routines on the atexit() stack-heaplast:&#160; &#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Address of last block on heapheapblocks:&#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Number of blockssaved_hl:&#160; &#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; ; Temp store for hlsaved_de:&#160; &#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; ; Temp store for de--- 534,551 ----exitcount:&#160; &#160; &#160; defb&#160; &#160; 0&#160; &#160; &#160; &#160;; How many routines on the atexit() stackheaplast:&#160; &#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Address of last block on heapheapblocks:&#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Number of blocks++ IF DEFINED_USING_amalloc+ XREF ASMTAIL+ XDEF _heap+ ; The heap pointer will be wiped at startup,+ ; but first its value (based on ASMTAIL)+ ; will be kept for sbrk() to setup the malloc area+ _heap:+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw ASMTAIL&#160; &#160; ; Location of the last program byte+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw 0+ ENDIF+saved_hl:&#160; &#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; ; Temp store for hlsaved_de:&#160; &#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; ; Temp store for deIndex: pc6001_crt0.asm===================================================================RCS file: /cvsroot/z88dk/z88dk/lib/pc6001_crt0.asm,vretrieving revision 1.1retrieving revision 1.2diff -C2 -d -r1.1 -r1.2*** pc6001_crt0.asm&#160; &#160; 24 Jan 2013 15:31:37 -0000&#160; &#160; 1.1--- pc6001_crt0.asm&#160; &#160; 18 Jun 2013 06:11:23 -0000&#160; &#160; 1.2****************** 103,108 ****--- 103,118 ----;ld&#160; &#160; &#160; sp,$F000+&#160; &#160; &#160; &#160; &#160;ld&#160; &#160; &#160; hl,-64+&#160; &#160; &#160; &#160; &#160;add&#160; &#160; &#160;hl,sp+&#160; &#160; &#160; &#160; &#160;ld&#160; &#160; &#160; sp,hlld&#160; &#160; &#160; (exitsp),sp+ ; Optional definition for auto MALLOC init+ ; it assumes we have free space between the end of+ ; the compiled program and the stack pointer+ &#160; &#160; IF DEFINED_USING_amalloc+ &#160; &#160; &#160; &#160; INCLUDE &#34;amalloc.def&#34;+ &#160; &#160; ENDIF+IF !DEFINED_nostreamsIF DEFINED_ANSIstdio****************** 191,194 ****--- 201,214 ----heapblocks:&#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Number of blocks+ IF DEFINED_USING_amalloc+ XREF ASMTAIL+ XDEF _heap+ ; The heap pointer will be wiped at startup,+ ; but first its value (based on ASMTAIL)+ ; will be kept for sbrk() to setup the malloc area+ _heap:+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw ASMTAIL&#160; &#160; ; Location of the last program byte+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw 0+ ENDIF;IF DEFINED_NEED1bitsoundIndex: pps_crt0.asm===================================================================RCS file: /cvsroot/z88dk/z88dk/lib/pps_crt0.asm,vretrieving revision 1.7retrieving revision 1.8diff -C2 -d -r1.7 -r1.8*** pps_crt0.asm&#160; &#160; 4 Jun 2013 11:41:13 -0000&#160; &#160; 1.7--- pps_crt0.asm&#160; &#160; 18 Jun 2013 06:11:23 -0000&#160; &#160; 1.8****************** 63,66 ****--- 63,74 ----ld&#160; &#160; &#160; sp,hlld&#160; &#160; &#160; (exitsp),sp++ ; Optional definition for auto MALLOC init+ ; it assumes we have free space between the end of+ ; the compiled program and the stack pointer+ &#160; &#160; IF DEFINED_USING_amalloc+ &#160; &#160; &#160; &#160; INCLUDE &#34;amalloc.def&#34;+ &#160; &#160; ENDIF+ld&#160; &#160; (start_prefix),ixIF !DEFINED_nostreams****************** 278,281 ****--- 286,300 ----heapblocks:&#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Number of blocks+ IF DEFINED_USING_amalloc+ XREF ASMTAIL+ XDEF _heap+ ; The heap pointer will be wiped at startup,+ ; but first its value (based on ASMTAIL)+ ; will be kept for sbrk() to setup the malloc area+ _heap:+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw ASMTAIL&#160; &#160; ; Location of the last program byte+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw 0+ ENDIF+start_prefix:&#160; &#160;defw&#160; &#160; 0&#160; &#160; ; Entry handle from OSIndex: rel_crt0.asm===================================================================RCS file: /cvsroot/z88dk/z88dk/lib/rel_crt0.asm,vretrieving revision 1.7retrieving revision 1.8diff -C2 -d -r1.7 -r1.8*** rel_crt0.asm&#160; &#160; 22 Jun 2009 21:20:05 -0000&#160; &#160; 1.7--- rel_crt0.asm&#160; &#160; 18 Jun 2013 06:11:23 -0000&#160; &#160; 1.8****************** 36,39 ****--- 36,47 ----ld&#160; &#160; &#160; sp,hlld&#160; &#160; &#160; (exitsp),sp++ ; Optional definition for auto MALLOC init+ ; it assumes we have free space between the end of+ ; the compiled program and the stack pointer+ &#160; &#160; IF DEFINED_USING_amalloc+ &#160; &#160; &#160; &#160; INCLUDE &#34;amalloc.def&#34;+ &#160; &#160; ENDIF+call&#160; &#160; doerrhan&#160; &#160; ;Initialise a laughable error handler****************** 174,177 ****--- 182,196 ----heapblocks:&#160; &#160; defw &#160; &#160; 0&#160; &#160; ; Number of blocks+ IF DEFINED_USING_amalloc+ XREF ASMTAIL+ XDEF _heap+ ; The heap pointer will be wiped at startup,+ ; but first its value (based on ASMTAIL)+ ; will be kept for sbrk() to setup the malloc area+ _heap:+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw ASMTAIL&#160; &#160; ; Location of the last program byte+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw 0+ ENDIF+packintrout:&#160; &#160; defw&#160; &#160; 0&#160; &#160; ; Address of user interrupt routineIndex: sam_crt0.asm===================================================================RCS file: /cvsroot/z88dk/z88dk/lib/sam_crt0.asm,vretrieving revision 1.10retrieving revision 1.11diff -C2 -d -r1.10 -r1.11*** sam_crt0.asm&#160; &#160; 22 Jun 2009 21:20:05 -0000&#160; &#160; 1.10--- sam_crt0.asm&#160; &#160; 18 Jun 2013 06:11:23 -0000&#160; &#160; 1.11****************** 9,13 ****!&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;MODULE&#160; sam_crt0;--- 9,13 ----!&#160; &#160; &#160; &#160; &#160;MODULE&#160; sam_crt0;****************** 16,25 ****;!&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;INCLUDE &#34;zcc_opt.def&#34;; No matter what set up we have, main is always, always external to; this fileb!&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;XREF&#160; &#160; _main;--- 16,25 ----;!&#160; &#160; &#160; &#160; &#160;INCLUDE &#34;zcc_opt.def&#34;; No matter what set up we have, main is always, always external to; this fileb!&#160; &#160; &#160; &#160; &#160;XREF&#160; &#160; _main;****************** 45,49 ****XDEF&#160; &#160; heaplast&#160; &#160; ;Near malloc heap variables! &#160; &#160; XDEF&#160; &#160; heapblocks; For stdin, stdout, stder--- 45,49 ----XDEF&#160; &#160; heaplast&#160; &#160; ;Near malloc heap variables!&#160; &#160; &#160; &#160; &#160;XDEF&#160; &#160; heapblocks; For stdin, stdout, stder****************** 67,71 ****start:!&#160; &#160; &#160; &#160; &#160; ld&#160; &#160; &#160; (start1+1),spIF !DEFINED_nostreams--- 67,100 ----start:!&#160; &#160; &#160; &#160; &#160;ld&#160; &#160; &#160; (start1+1),sp&#160; &#160;;Save entry stack!&#160; &#160; &#160; &#160; &#160;ld&#160; &#160; &#160; hl,-64&#160; &#160; &#160; &#160; ;Create the atexit stack!&#160; &#160; &#160; &#160; &#160;add&#160; &#160; &#160;hl,sp!&#160; &#160; &#160; &#160; &#160;ld&#160; &#160; &#160; sp,hl!&#160; &#160; &#160; &#160; &#160;ld&#160; &#160; &#160; (exitsp),sp!! ; Optional definition for auto MALLOC init; it takes! ; all the space between the end of the program and UDG! IF DEFINED_USING_amalloc! &#160; &#160; &#160; &#160; ld&#160; &#160; hl,_heap! &#160; &#160; &#160; &#160; ld&#160; &#160; c,(hl)! &#160; &#160; &#160; &#160; inc&#160; &#160; hl! &#160; &#160; &#160; &#160; ld&#160; &#160; b,(hl)! &#160; &#160; &#160; &#160; inc bc! &#160; &#160; &#160; &#160; ; compact way to do &#34;mallinit()&#34;! &#160; &#160; &#160; &#160; xor&#160; &#160; a! &#160; &#160; &#160; &#160; ld&#160; &#160; (hl),a! &#160; &#160; &#160; &#160; dec hl! &#160; &#160; &#160; &#160; ld&#160; &#160; (hl),a!! &#160; &#160; &#160; &#160; ;&#160; Stack is somewhere else, no need to reduce the size for malloc! &#160; &#160; &#160; &#160; ld&#160; &#160; hl,65535! &#160; &#160; &#160; &#160; sbc hl,bc&#160; &#160; ; hl = total free memory!! &#160; &#160; &#160; &#160; push bc ; main address for malloc area! &#160; &#160; &#160; &#160; push hl&#160; &#160; ; area size! &#160; &#160; &#160; &#160; LIB sbrk_callee! &#160; &#160; &#160; &#160; call&#160; &#160; sbrk_callee! ENDIF!IF !DEFINED_nostreams****************** 173,176 ****--- 202,216 ----heapblocks:&#160; &#160; &#160;defw&#160; &#160; 0+ IF DEFINED_USING_amalloc+ XREF ASMTAIL+ XDEF _heap+ ; The heap pointer will be wiped at startup,+ ; but first its value (based on ASMTAIL)+ ; will be kept for sbrk() to setup the malloc area+ _heap:+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw ASMTAIL&#160; &#160; ; Location of the last program byte+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw 0+ ENDIF+; mem stuffIndex: sc3000_crt0.asm===================================================================RCS file: /cvsroot/z88dk/z88dk/lib/sc3000_crt0.asm,vretrieving revision 1.4retrieving revision 1.5diff -C2 -d -r1.4 -r1.5*** sc3000_crt0.asm&#160; &#160; 13 Jul 2010 06:16:53 -0000&#160; &#160; 1.4--- sc3000_crt0.asm&#160; &#160; 18 Jun 2013 06:11:23 -0000&#160; &#160; 1.5****************** 217,220 ****--- 217,227 ----ld&#160; &#160; &#160; (exitsp),sp+ ; Optional definition for auto MALLOC init+ ; it assumes we have free space between the end of+ ; the compiled program and the stack pointer+ &#160; &#160; IF DEFINED_USING_amalloc+ &#160; &#160; &#160; &#160; INCLUDE &#34;amalloc.def&#34;+ &#160; &#160; ENDIF+IF !DEFINED_nostreamsIF DEFINED_ANSIstdio****************** 420,423 ****--- 427,440 ----heapblocks:&#160; &#160; defw&#160; &#160; 0+ IF DEFINED_USING_amalloc+ XREF ASMTAIL+ XDEF _heap+ ; The heap pointer will be wiped at startup,+ ; but first its value (based on ASMTAIL)+ ; will be kept for sbrk() to setup the malloc area+ _heap:+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw ASMTAIL&#160; &#160; ; Location of the last program byte+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw 0+ ENDIF; mem stuffIndex: sorcerer_crt0.asm===================================================================RCS file: /cvsroot/z88dk/z88dk/lib/sorcerer_crt0.asm,vretrieving revision 1.1retrieving revision 1.2diff -C2 -d -r1.1 -r1.2*** sorcerer_crt0.asm&#160; &#160; 24 May 2011 18:11:09 -0000&#160; &#160; 1.1--- sorcerer_crt0.asm&#160; &#160; 18 Jun 2013 06:11:23 -0000&#160; &#160; 1.2****************** 68,71 ****--- 68,78 ----ld&#160; &#160; &#160; (exitsp),sp+ ; Optional definition for auto MALLOC init+ ; it assumes we have free space between the end of+ ; the compiled program and the stack pointer+ &#160; &#160; IF DEFINED_USING_amalloc+ &#160; &#160; &#160; &#160; INCLUDE &#34;amalloc.def&#34;+ &#160; &#160; ENDIF+IF !DEFINED_nostreamsIF DEFINED_ANSIstdio****************** 136,139 ****--- 143,158 ----heaplast:&#160; &#160; defw&#160; &#160; 0&#160; &#160; ;Pointer to last free heap blockheapblocks:&#160; &#160; defw&#160; &#160; 0&#160; &#160; ;Number of heap blocks available++ IF DEFINED_USING_amalloc+ XREF ASMTAIL+ XDEF _heap+ ; The heap pointer will be wiped at startup,+ ; but first its value (based on ASMTAIL)+ ; will be kept for sbrk() to setup the malloc area+ _heap:+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw ASMTAIL&#160; &#160; ; Location of the last program byte+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw 0+ ENDIF+IF !DEFINED_HAVESEEDXDEF&#160; &#160; _std_seed&#160; &#160; &#160; &#160; ;Integer rand() seedIndex: spec_crt0.asm===================================================================RCS file: /cvsroot/z88dk/z88dk/lib/spec_crt0.asm,vretrieving revision 1.31retrieving revision 1.32diff -C2 -d -r1.31 -r1.32*** spec_crt0.asm&#160; &#160; 5 Jul 2011 14:47:36 -0000&#160; &#160; 1.31--- spec_crt0.asm&#160; &#160; 18 Jun 2013 06:11:23 -0000&#160; &#160; 1.32****************** 117,120 ****--- 117,145 ----ld&#160; &#160; &#160; sp,hlld&#160; &#160; &#160; (exitsp),sp++ ; Optional definition for auto MALLOC init; it takes+ ; all the space between the end of the program and UDG+ IF DEFINED_USING_amalloc+ &#160; &#160; &#160; &#160; ld&#160; &#160; hl,_heap+ &#160; &#160; &#160; &#160; ld&#160; &#160; c,(hl)+ &#160; &#160; &#160; &#160; inc&#160; &#160; hl+ &#160; &#160; &#160; &#160; ld&#160; &#160; b,(hl)+ &#160; &#160; &#160; &#160; inc bc+ &#160; &#160; &#160; &#160; ; compact way to do &#34;mallinit()&#34;+ &#160; &#160; &#160; &#160; xor&#160; &#160; a+ &#160; &#160; &#160; &#160; ld&#160; &#160; (hl),a+ &#160; &#160; &#160; &#160; dec hl+ &#160; &#160; &#160; &#160; ld&#160; &#160; (hl),a++ &#160; &#160; &#160; &#160; ;&#160; Stack is somewhere else, no need to reduce the size for malloc+ &#160; &#160; &#160; &#160; ld&#160; &#160; hl,65535-168 ; Preserve UDG+ &#160; &#160; &#160; &#160; sbc hl,bc&#160; &#160; ; hl = total free memory++ &#160; &#160; &#160; &#160; push bc ; main address for malloc area+ &#160; &#160; &#160; &#160; push hl&#160; &#160; ; area size+ &#160; &#160; &#160; &#160; LIB sbrk_callee+ &#160; &#160; &#160; &#160; call&#160; &#160; sbrk_callee+ ENDIF+IF DEFINED_ZXVGS;setting variables needed for proper keyboard reading****************** 129,132 ****--- 154,158 ----+IF !DEFINED_nostreamsIF DEFINED_ANSIstdio****************** 165,168 ****--- 191,198 ----defs&#160; &#160; 56-cleanup_exit-1+ if (ASMPC&#60;&#62;$0038)+&#160; &#160; &#160; &#160; &#160;defs&#160; &#160; CODE_ALIGNMENT_ERROR+ endif+; ######## IM 1 MODE INTERRUPT ENTRY ########****************** 489,492 ****--- 519,532 ----heapblocks:&#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Number of blocks+ IF DEFINED_USING_amalloc+ XREF ASMTAIL+ XDEF _heap+ ; The heap pointer will be wiped at startup,+ ; but first its value (based on ASMTAIL)+ ; will be kept for sbrk() to setup the malloc area+ _heap:+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw ASMTAIL&#160; &#160; ; Location of the last program byte+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw 0+ ENDIFsnd_tick:&#160; &#160; &#160; &#160;defb&#160; &#160; 0&#160; &#160; &#160; &#160;; Sound variableIndex: svi_crt0.asm===================================================================RCS file: /cvsroot/z88dk/z88dk/lib/svi_crt0.asm,vretrieving revision 1.10retrieving revision 1.11diff -C2 -d -r1.10 -r1.11*** svi_crt0.asm&#160; &#160; 22 Jun 2009 21:20:05 -0000&#160; &#160; 1.10--- svi_crt0.asm&#160; &#160; 18 Jun 2013 06:11:23 -0000&#160; &#160; 1.11****************** 7,11 ****!&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;MODULE&#160; svi_crt0;--- 7,11 ----! &#160; &#160; &#160; &#160; MODULE&#160; svi_crt0;****************** 14,18 ****;!&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;INCLUDE &#34;zcc_opt.def&#34;;----------- 14,18 ----;! &#160; &#160; &#160; &#160; INCLUDE &#34;zcc_opt.def&#34;;--------****************** 20,52 ****;--------! &#160; &#160; XREF&#160; &#160; _main!&#160; &#160; &#160; &#160; &#160;XDEF&#160; &#160; cleanup!&#160; &#160; &#160; &#160; &#160;XDEF&#160; &#160; l_dcal!&#160; &#160; &#160; &#160; &#160;XDEF&#160; &#160; _std_seed! &#160; &#160; XDEF&#160; &#160; snd_tick&#160; &#160; ; Sound variable! &#160; &#160; XDEF&#160; &#160; _vfprintf!&#160; &#160; &#160; &#160; &#160;XDEF&#160; &#160; exitsp!&#160; &#160; &#160; &#160; &#160;XDEF&#160; &#160; exitcount!&#160; &#160; &#160; &#160; &#160; &#160; XDEF&#160; &#160; heaplast&#160; &#160; ; Near malloc heap variables! &#160; &#160; XDEF&#160; &#160; heapblocks!&#160; &#160; &#160; &#160; &#160;XDEF&#160; &#160; __sgoioblk! ; Graphics stuff! &#160; &#160; XDEF&#160; &#160; pixelbyte&#160; &#160; ; Temp store for non-buffered mode!&#160; &#160; &#160; &#160; &#160;XDEF&#160; &#160; base_graphics&#160; &#160;; Graphical variables!&#160; &#160; &#160; &#160; &#160;XDEF&#160; &#160; coords&#160; &#160; &#160; &#160; &#160; ; Current xy position- ; MSX platform specific stuff- ;-&#160; &#160; &#160; &#160; &#160;XDEF&#160; &#160; msxbios-&#160; &#160; &#160; &#160; &#160;;; XDEF&#160; &#160; brksave---- 20,52 ----;--------! &#160; &#160; &#160; &#160; XREF&#160; &#160; _main! &#160; &#160; &#160; &#160; XDEF&#160; &#160; cleanup! &#160; &#160; &#160; &#160; XDEF&#160; &#160; l_dcal! &#160; &#160; &#160; &#160; XDEF&#160; &#160; _std_seed! &#160; &#160; &#160; &#160; XDEF&#160; &#160; snd_tick&#160; &#160; ; Sound variable! &#160; &#160; &#160; &#160; XDEF&#160; &#160; _vfprintf! &#160; &#160; &#160; &#160; XDEF&#160; &#160; exitsp! &#160; &#160; &#160; &#160; XDEF&#160; &#160; exitcount! &#160; &#160; &#160; &#160; XDEF&#160; &#160; heaplast&#160; &#160; ; Near malloc heap variables! &#160; &#160; &#160; &#160; XDEF&#160; &#160; heapblocks! &#160; &#160; &#160; &#160; XDEF&#160; &#160; __sgoioblk! &#160; &#160; &#160; &#160; ; Graphics stuff! &#160; &#160; &#160; &#160; XDEF&#160; &#160; pixelbyte&#160; &#160; ; Temp store for non-buffered mode! &#160; &#160; &#160; &#160; XDEF&#160; &#160; base_graphics&#160; &#160;; Graphical variables! &#160; &#160; &#160; &#160; XDEF&#160; &#160; coords&#160; &#160; &#160; &#160; &#160; ; Current xy position!! &#160; &#160; &#160; &#160; ; MSX platform specific stuff! &#160; &#160; &#160; &#160; ;! &#160; &#160; &#160; &#160; XDEF&#160; &#160; msxbios! &#160; &#160; &#160; &#160; ;; XDEF&#160; &#160; brksave****************** 65,68 ****--- 65,75 ----ld&#160; &#160; &#160; (exitsp),sp+ ; Optional definition for auto MALLOC init+ ; it assumes we have free space between the end of+ ; the compiled program and the stack pointer+ &#160; &#160; IF DEFINED_USING_amalloc+ &#160; &#160; &#160; &#160; INCLUDE &#34;amalloc.def&#34;+ &#160; &#160; ENDIF+IF !DEFINED_nostreamsIF DEFINED_ANSIstdio****************** 163,166 ****--- 170,185 ----heapblocks:&#160; &#160; defw&#160; &#160; 0+ IF DEFINED_USING_amalloc+ XREF ASMTAIL+ XDEF _heap+ ; The heap pointer will be wiped at startup,+ ; but first its value (based on ASMTAIL)+ ; will be kept for sbrk() to setup the malloc area+ _heap:+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw ASMTAIL&#160; &#160; ; Location of the last program byte+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw 0+ ENDIF++; ---------------; MSX specific stuffIndex: ti82_crt0.asm===================================================================RCS file: /cvsroot/z88dk/z88dk/lib/ti82_crt0.asm,vretrieving revision 1.21retrieving revision 1.22diff -C2 -d -r1.21 -r1.22*** ti82_crt0.asm&#160; &#160; 22 Jun 2009 21:20:05 -0000&#160; &#160; 1.21--- ti82_crt0.asm&#160; &#160; 18 Jun 2013 06:11:23 -0000&#160; &#160; 1.22****************** 86,89 ****--- 86,96 ----ENDIF+ ; Optional definition for auto MALLOC init+ ; it assumes we have free space between the end of+ ; the compiled program and the stack pointer+ &#160; &#160; IF DEFINED_USING_amalloc+ &#160; &#160; &#160; &#160; INCLUDE &#34;amalloc.def&#34;+ &#160; &#160; ENDIF+LIB&#160; &#160; fputc_consld&#160; &#160; hl,12****************** 164,167 ****--- 171,185 ----heapblocks:&#160; &#160; defw&#160; &#160; 0+ IF DEFINED_USING_amalloc+ XREF ASMTAIL+ XDEF _heap+ ; The heap pointer will be wiped at startup,+ ; but first its value (based on ASMTAIL)+ ; will be kept for sbrk() to setup the malloc area+ _heap:+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw ASMTAIL&#160; &#160; ; Location of the last program byte+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw 0+ ENDIF+;mem stuffbase_graphics:&#160; &#160; defw&#160; &#160; GRAPH_MEMIndex: ti83_crt0.asm===================================================================RCS file: /cvsroot/z88dk/z88dk/lib/ti83_crt0.asm,vretrieving revision 1.22retrieving revision 1.23diff -C2 -d -r1.22 -r1.23*** ti83_crt0.asm&#160; &#160; 22 Jun 2009 21:20:05 -0000&#160; &#160; 1.22--- ti83_crt0.asm&#160; &#160; 18 Jun 2013 06:11:23 -0000&#160; &#160; 1.23****************** 292,295 ****--- 292,302 ----ENDIF+ ; Optional definition for auto MALLOC init+ ; it assumes we have free space between the end of+ ; the compiled program and the stack pointer+ &#160; &#160; IF DEFINED_USING_amalloc+ &#160; &#160; &#160; &#160; INCLUDE &#34;amalloc.def&#34;+ &#160; &#160; ENDIF+LIB&#160; &#160; fputc_consld&#160; &#160; hl,12****************** 384,387 ****--- 391,405 ----heapblocks:&#160; &#160; defw&#160; &#160; 0+ IF DEFINED_USING_amalloc+ XREF ASMTAIL+ XDEF _heap+ ; The heap pointer will be wiped at startup,+ ; but first its value (based on ASMTAIL)+ ; will be kept for sbrk() to setup the malloc area+ _heap:+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw ASMTAIL&#160; &#160; ; Location of the last program byte+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw 0+ ENDIF+; mem stuffbase_graphics:&#160; &#160; defw&#160; &#160; plotSScreenIndex: ti83p_crt0.asm===================================================================RCS file: /cvsroot/z88dk/z88dk/lib/ti83p_crt0.asm,vretrieving revision 1.23retrieving revision 1.24diff -C2 -d -r1.23 -r1.24*** ti83p_crt0.asm&#160; &#160; 22 Jun 2009 21:20:05 -0000&#160; &#160; 1.23--- ti83p_crt0.asm&#160; &#160; 18 Jun 2013 06:11:23 -0000&#160; &#160; 1.24****************** 36,40 ****XDEF&#160; &#160; exitcount&#160; &#160; ;!&#160; &#160; &#160; &#160; &#160; &#160; XDEF&#160; &#160; heaplast&#160; &#160; ;Near malloc heap variablesXDEF&#160; &#160; heapblocks--- 36,40 ----XDEF&#160; &#160; exitcount&#160; &#160; ;! &#160; &#160; XDEF&#160; &#160; heaplast&#160; &#160; ;Near malloc heap variablesXDEF&#160; &#160; heapblocks****************** 181,184 ****--- 181,191 ----ENDIF+ ; Optional definition for auto MALLOC init+ ; it assumes we have free space between the end of+ ; the compiled program and the stack pointer+ &#160; &#160; IF DEFINED_USING_amalloc+ &#160; &#160; &#160; &#160; INCLUDE &#34;amalloc.def&#34;+ &#160; &#160; ENDIF+LIB&#160; &#160; fputc_consld&#160; &#160; hl,12****************** 271,274 ****--- 278,292 ----heapblocks:&#160; &#160; defw&#160; &#160; 0+ IF DEFINED_USING_amalloc+ XREF ASMTAIL+ XDEF _heap+ ; The heap pointer will be wiped at startup,+ ; but first its value (based on ASMTAIL)+ ; will be kept for sbrk() to setup the malloc area+ _heap:+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw ASMTAIL&#160; &#160; ; Location of the last program byte+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw 0+ ENDIF+; mem stuffbase_graphics:&#160; &#160; defw&#160; &#160; plotSScreenIndex: ti83papp.asm===================================================================RCS file: /cvsroot/z88dk/z88dk/lib/ti83papp.asm,vretrieving revision 1.8retrieving revision 1.9diff -C2 -d -r1.8 -r1.9*** ti83papp.asm&#160; &#160; 22 Jun 2009 21:20:05 -0000&#160; &#160; 1.8--- ti83papp.asm&#160; &#160; 18 Jun 2013 06:11:23 -0000&#160; &#160; 1.9****************** 25,29 ****XDEF&#160; &#160; exitcount&#160; &#160; ;!&#160; &#160; &#160; &#160; &#160; &#160; XDEF&#160; &#160; heaplast&#160; &#160; ;Near malloc heap variablesXDEF&#160; &#160; heapblocks--- 25,29 ----XDEF&#160; &#160; exitcount&#160; &#160; ;! &#160; &#160; XDEF&#160; &#160; heaplast&#160; &#160; ;Near malloc heap variablesXDEF&#160; &#160; heapblocksIndex: ti85_crt0.asm===================================================================RCS file: /cvsroot/z88dk/z88dk/lib/ti85_crt0.asm,vretrieving revision 1.22retrieving revision 1.23diff -C2 -d -r1.22 -r1.23*** ti85_crt0.asm&#160; &#160; 22 Jun 2009 21:20:05 -0000&#160; &#160; 1.22--- ti85_crt0.asm&#160; &#160; 18 Jun 2013 06:11:23 -0000&#160; &#160; 1.23****************** 24,28 ****XDEF&#160; &#160; exitcount&#160; &#160; ;!&#160; &#160; &#160; &#160; &#160; &#160; XDEF&#160; &#160; heaplast&#160; &#160; ;Near malloc heap variablesXDEF&#160; &#160; heapblocks--- 24,28 ----XDEF&#160; &#160; exitcount&#160; &#160; ;! &#160; &#160; XDEF&#160; &#160; heaplast&#160; &#160; ;Near malloc heap variablesXDEF&#160; &#160; heapblocks****************** 193,196 ****--- 193,203 ----ENDIF+ ; Optional definition for auto MALLOC init+ ; it assumes we have free space between the end of+ ; the compiled program and the stack pointer+ &#160; &#160; IF DEFINED_USING_amalloc+ &#160; &#160; &#160; &#160; INCLUDE &#34;amalloc.def&#34;+ &#160; &#160; ENDIF+LIB&#160; &#160; fputc_consld&#160; &#160; hl,12****************** 294,297 ****--- 301,315 ----heapblocks:&#160; &#160; defw&#160; &#160; 0+ IF DEFINED_USING_amalloc+ XREF ASMTAIL+ XDEF _heap+ ; The heap pointer will be wiped at startup,+ ; but first its value (based on ASMTAIL)+ ; will be kept for sbrk() to setup the malloc area+ _heap:+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw ASMTAIL&#160; &#160; ; Location of the last program byte+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw 0+ ENDIF+; mem stuffbase_graphics:&#160; &#160; defw&#160; &#160; VIDEO_MEMIndex: ti86_crt0.asm===================================================================RCS file: /cvsroot/z88dk/z88dk/lib/ti86_crt0.asm,vretrieving revision 1.24retrieving revision 1.25diff -C2 -d -r1.24 -r1.25*** ti86_crt0.asm&#160; &#160; 11 Nov 2010 09:17:09 -0000&#160; &#160; 1.24--- ti86_crt0.asm&#160; &#160; 18 Jun 2013 06:11:23 -0000&#160; &#160; 1.25****************** 36,40 ****XDEF&#160; &#160; exitcount&#160; &#160; ;!&#160; &#160; &#160; &#160; &#160; &#160; XDEF&#160; &#160; heaplast&#160; &#160; ;Near malloc heap variablesXDEF&#160; &#160; heapblocks--- 36,40 ----XDEF&#160; &#160; exitcount&#160; &#160; ;! &#160; &#160; XDEF&#160; &#160; heaplast&#160; &#160; ;Near malloc heap variablesXDEF&#160; &#160; heapblocks****************** 232,235 ****--- 232,254 ----ENDIF+ ; Optional definition for auto MALLOC init+ ; it assumes we have free space between the end of+ ; the compiled program and the stack pointer+ &#160; &#160; IF DEFINED_USING_amalloc+ &#160; &#160; &#160; &#160; INCLUDE &#34;amalloc.def&#34;+ &#160; &#160; ENDIF++ IF !DEFINED_nostreams+ IF DEFINED_ANSIstdio+ ; Set up the std* stuff so we can be called again+ &#160; &#160; ld&#160; &#160; hl,__sgoioblk+2+ &#160; &#160; ld&#160; &#160; (hl),19&#160; &#160; ;stdin+ &#160; &#160; ld&#160; &#160; hl,__sgoioblk+6+ &#160; &#160; ld&#160; &#160; (hl),21&#160; &#160; ;stdout+ &#160; &#160; ld&#160; &#160; hl,__sgoioblk+10+ &#160; &#160; ld&#160; &#160; (hl),21&#160; &#160; ;stderr+ ENDIF+ ENDIF+;&#160; IF NONANSIcall&#160; &#160; _homeup&#160; &#160; &#160; &#160; ; Set text cursor at (0,0)****************** 348,351 ****--- 367,381 ----heapblocks:&#160; &#160; defw&#160; &#160; 0+ IF DEFINED_USING_amalloc+ XREF ASMTAIL+ XDEF _heap+ ; The heap pointer will be wiped at startup,+ ; but first its value (based on ASMTAIL)+ ; will be kept for sbrk() to setup the malloc area+ _heap:+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw ASMTAIL&#160; &#160; ; Location of the last program byte+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw 0+ ENDIF+; mem stuffbase_graphics:&#160; &#160; defw&#160; &#160; $FC00&#160; &#160; ;TI86Index: trs80_crt0.asm===================================================================RCS file: /cvsroot/z88dk/z88dk/lib/trs80_crt0.asm,vretrieving revision 1.5retrieving revision 1.6diff -C2 -d -r1.5 -r1.6*** trs80_crt0.asm&#160; &#160; 22 Jun 2009 21:20:05 -0000&#160; &#160; 1.5--- trs80_crt0.asm&#160; &#160; 18 Jun 2013 06:11:23 -0000&#160; &#160; 1.6****************** 59,62 ****--- 59,69 ----ld&#160; &#160; &#160; (exitsp),sp+ ; Optional definition for auto MALLOC init+ ; it assumes we have free space between the end of+ ; the compiled program and the stack pointer+ &#160; &#160; IF DEFINED_USING_amalloc+ &#160; &#160; &#160; &#160; INCLUDE &#34;amalloc.def&#34;+ &#160; &#160; ENDIF+IF !DEFINED_nostreamsIF DEFINED_ANSIstdio****************** 138,145 ****exitcount:&#160; &#160; &#160; defb&#160; &#160; 0&#160; &#160; &#160; &#160;; How many routines on the atexit() stack-heaplast:&#160; &#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Address of last block on heapheapblocks:&#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Number of blocksIF DEFINED_NEED1bitsoundsnd_tick:&#160; &#160; &#160; &#160;defb&#160; &#160; 0&#160; &#160; &#160; &#160;; Sound variable--- 145,162 ----exitcount:&#160; &#160; &#160; defb&#160; &#160; 0&#160; &#160; &#160; &#160;; How many routines on the atexit() stackheaplast:&#160; &#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Address of last block on heapheapblocks:&#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Number of blocks+ IF DEFINED_USING_amalloc+ XREF ASMTAIL+ XDEF _heap+ ; The heap pointer will be wiped at startup,+ ; but first its value (based on ASMTAIL)+ ; will be kept for sbrk() to setup the malloc area+ _heap:+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw ASMTAIL&#160; &#160; ; Location of the last program byte+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw 0+ ENDIF+IF DEFINED_NEED1bitsoundsnd_tick:&#160; &#160; &#160; &#160;defb&#160; &#160; 0&#160; &#160; &#160; &#160;; Sound variableIndex: ts2068_crt0.asm===================================================================RCS file: /cvsroot/z88dk/z88dk/lib/ts2068_crt0.asm,vretrieving revision 1.14retrieving revision 1.15diff -C2 -d -r1.14 -r1.15*** ts2068_crt0.asm&#160; &#160; 19 Feb 2013 12:46:39 -0000&#160; &#160; 1.14--- ts2068_crt0.asm&#160; &#160; 18 Jun 2013 06:11:23 -0000&#160; &#160; 1.15****************** 85,89 ****ld&#160; &#160; &#160; sp,hlld&#160; &#160; &#160; (exitsp),sp!IF (startup=2)ld&#160; &#160; &#160; &#160; hl,$6000--- 85,114 ----ld&#160; &#160; &#160; sp,hlld&#160; &#160; &#160; (exitsp),sp!! ; Optional definition for auto MALLOC init; it takes! ; all the space between the end of the program and UDG! IF DEFINED_USING_amalloc! &#160; &#160; &#160; &#160; ld&#160; &#160; hl,_heap! &#160; &#160; &#160; &#160; ld&#160; &#160; c,(hl)! &#160; &#160; &#160; &#160; inc&#160; &#160; hl! &#160; &#160; &#160; &#160; ld&#160; &#160; b,(hl)! &#160; &#160; &#160; &#160; inc bc! &#160; &#160; &#160; &#160; ; compact way to do &#34;mallinit()&#34;! &#160; &#160; &#160; &#160; xor&#160; &#160; a! &#160; &#160; &#160; &#160; ld&#160; &#160; (hl),a! &#160; &#160; &#160; &#160; dec hl! &#160; &#160; &#160; &#160; ld&#160; &#160; (hl),a!! &#160; &#160; &#160; &#160; ;&#160; Stack is somewhere else, no need to reduce the size for malloc! &#160; &#160; &#160; &#160; ld&#160; &#160; hl,65535-168 ; Preserve UDG! &#160; &#160; &#160; &#160; sbc hl,bc&#160; &#160; ; hl = total free memory!! &#160; &#160; &#160; &#160; push bc ; main address for malloc area! &#160; &#160; &#160; &#160; push hl&#160; &#160; ; area size! &#160; &#160; &#160; &#160; LIB sbrk_callee! &#160; &#160; &#160; &#160; call&#160; &#160; sbrk_callee! ENDIF!!IF (startup=2)ld&#160; &#160; &#160; &#160; hl,$6000****************** 396,400 ****heaplast:&#160; &#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Address of last block on heapheapblocks:&#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Number of blocks!snd_tick:&#160; &#160; &#160; &#160;defb&#160; &#160; 0&#160; &#160; ; Sound variable--- 421,434 ----heaplast:&#160; &#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Address of last block on heapheapblocks:&#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Number of blocks! IF DEFINED_USING_amalloc! XREF ASMTAIL! XDEF _heap! ; The heap pointer will be wiped at startup,! ; but first its value (based on ASMTAIL)! ; will be kept for sbrk() to setup the malloc area! _heap:!&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw ASMTAIL&#160; &#160; ; Location of the last program byte!&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw 0! ENDIFsnd_tick:&#160; &#160; &#160; &#160;defb&#160; &#160; 0&#160; &#160; ; Sound variableIndex: vz_crt0.asm===================================================================RCS file: /cvsroot/z88dk/z88dk/lib/vz_crt0.asm,vretrieving revision 1.13retrieving revision 1.14diff -C2 -d -r1.13 -r1.14*** vz_crt0.asm&#160; &#160; 2 Aug 2010 12:58:03 -0000&#160; &#160; 1.13--- vz_crt0.asm&#160; &#160; 18 Jun 2013 06:11:23 -0000&#160; &#160; 1.14****************** 109,112 ****--- 109,136 ----start:+ &#160; &#160; ld&#160; &#160; hl,-64&#160; &#160; &#160; &#160; ; 32 pointers (ANSI standard)+ &#160; &#160; add&#160; &#160; hl,sp+ &#160; &#160; ld&#160; &#160; sp,hl+ &#160; &#160; ld&#160; &#160; (exitsp),sp++ ; Optional definition for auto MALLOC init+ ; it assumes we have free space between the end of+ ; the compiled program and the stack pointer+ &#160; &#160; IF DEFINED_USING_amalloc+ &#160; &#160; &#160; &#160; INCLUDE &#34;amalloc.def&#34;+ &#160; &#160; ENDIF++ IF !DEFINED_nostreams+ IF DEFINED_ANSIstdio+ ; Set up the std* stuff so we can be called again+ &#160; &#160; ld&#160; &#160; hl,__sgoioblk+2+ &#160; &#160; ld&#160; &#160; (hl),19&#160; &#160; ;stdin+ &#160; &#160; ld&#160; &#160; hl,__sgoioblk+6+ &#160; &#160; ld&#160; &#160; (hl),21&#160; &#160; ;stdout+ &#160; &#160; ld&#160; &#160; hl,__sgoioblk+10+ &#160; &#160; ld&#160; &#160; (hl),21&#160; &#160; ;stderr+ ENDIF+ ENDIF+call&#160; &#160; _maincleanup:****************** 121,127 ****ENDIFENDIF-&#160; &#160; &#160; &#160; &#160;exx-&#160; &#160; &#160; &#160; &#160;ld&#160; &#160; &#160; hl,10072-&#160; &#160; &#160; &#160; &#160;exxpop&#160; &#160; &#160;bcstart1:--- 145,148 ----****************** 180,187 ****exitcount:&#160; &#160; &#160; defb&#160; &#160; 0&#160; &#160; &#160; &#160;; How many routines on the atexit() stack-heaplast:&#160; &#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Address of last block on heapheapblocks:&#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Number of blocksIF DEFINED_NEED1bitsoundsnd_tick:&#160; &#160; defb&#160; &#160; 0&#160; &#160; ; Sound variable--- 201,229 ----exitcount:&#160; &#160; &#160; defb&#160; &#160; 0&#160; &#160; &#160; &#160;; How many routines on the atexit() stackheaplast:&#160; &#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Address of last block on heapheapblocks:&#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Number of blocks+ IF DEFINED_USING_amalloc+ XREF ASMTAIL+ XDEF _heap+ ; The heap pointer will be wiped at startup,+ ; but first its value (based on ASMTAIL)+ ; will be kept for sbrk() to setup the malloc area+ _heap:+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw ASMTAIL&#160; &#160; ; Location of the last program byte+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw 0+ ENDIF++ IF DEFINED_USING_amalloc+ XREF ASMTAIL+ XDEF _heap+ ; The heap pointer will be wiped at startup,+ ; but first its value (based on ASMTAIL)+ ; will be kept for sbrk() to setup the malloc area+ _heap:+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw ASMTAIL&#160; &#160; ; Location of the last program byte+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw 0+ ENDIF+IF DEFINED_NEED1bitsoundsnd_tick:&#160; &#160; defb&#160; &#160; 0&#160; &#160; ; Sound variableIndex: x07_crt0.asm===================================================================RCS file: /cvsroot/z88dk/z88dk/lib/x07_crt0.asm,vretrieving revision 1.1retrieving revision 1.2diff -C2 -d -r1.1 -r1.2*** x07_crt0.asm&#160; &#160; 15 Jun 2011 20:15:00 -0000&#160; &#160; 1.1--- x07_crt0.asm&#160; &#160; 18 Jun 2013 06:11:23 -0000&#160; &#160; 1.2****************** 64,67 ****--- 64,74 ----ld&#160; &#160; &#160; (exitsp),sp+ ; Optional definition for auto MALLOC init+ ; it assumes we have free space between the end of+ ; the compiled program and the stack pointer+ &#160; &#160; IF DEFINED_USING_amalloc+ &#160; &#160; &#160; &#160; INCLUDE &#34;amalloc.def&#34;+ &#160; &#160; ENDIF+IF !DEFINED_nostreamsIF DEFINED_ANSIstdio****************** 137,140 ****--- 144,159 ----heaplast:&#160; &#160; defw&#160; &#160; 0&#160; &#160; ;Pointer to last free heap blockheapblocks:&#160; &#160; defw&#160; &#160; 0&#160; &#160; ;Number of heap blocks available++ IF DEFINED_USING_amalloc+ XREF ASMTAIL+ XDEF _heap+ ; The heap pointer will be wiped at startup,+ ; but first its value (based on ASMTAIL)+ ; will be kept for sbrk() to setup the malloc area+ _heap:+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw ASMTAIL&#160; &#160; ; Location of the last program byte+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw 0+ ENDIF+IF !DEFINED_HAVESEEDXDEF&#160; &#160; _std_seed&#160; &#160; &#160; &#160; ;Integer rand() seedIndex: z88s_crt0.asm===================================================================RCS file: /cvsroot/z88dk/z88dk/lib/z88s_crt0.asm,vretrieving revision 1.10retrieving revision 1.11diff -C2 -d -r1.10 -r1.11*** z88s_crt0.asm&#160; &#160; 22 Jun 2009 21:20:05 -0000&#160; &#160; 1.10--- z88s_crt0.asm&#160; &#160; 18 Jun 2013 06:11:23 -0000&#160; &#160; 1.11****************** 16,20 ****header_start:!&#160; &#160; &#160; &#160; &#160;defm&#160; &#160; &#34;!bin&#34;defb&#160; &#160; shell_verhdefb&#160; &#160; shell_verm--- 16,20 ----header_start:! &#160; &#160; defm&#160; &#160; &#34;!bin&#34;defb&#160; &#160; shell_verhdefb&#160; &#160; shell_verm****************** 22,27 ****defb&#160; &#160; 13shell_length:!&#160; &#160; &#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160; ; Fill in by make program!&#160; &#160; &#160; &#160; &#160;defw&#160; &#160; start--- 22,27 ----defb&#160; &#160; 13shell_length:! &#160; &#160; defw&#160; &#160; 0&#160; &#160; &#160; &#160; ; Fill in by make program! &#160; &#160; defw&#160; &#160; start****************** 41,47 ****ld&#160; &#160; hl,-100&#160; &#160; &#160; &#160; ; atexit stack (64) + argv spaceadd&#160; &#160; hl,sp!&#160; &#160; &#160; &#160; &#160;ld&#160; &#160; &#160; sp,hl!&#160; &#160; &#160; &#160; &#160;ld&#160; &#160; &#160; (exitsp),sp!&#160; &#160; &#160; &#160; &#160;call&#160; &#160; doerrhan&#160; &#160; ;Initialise a laughable error handler--- 41,55 ----ld&#160; &#160; hl,-100&#160; &#160; &#160; &#160; ; atexit stack (64) + argv spaceadd&#160; &#160; hl,sp! &#160; &#160; ld&#160; &#160; &#160; sp,hl! &#160; &#160; ld&#160; &#160; &#160; (exitsp),sp!! ; Optional definition for auto MALLOC init! ; it assumes we have free space between the end of! ; the compiled program and the stack pointer! &#160; &#160; IF DEFINED_USING_amalloc! &#160; &#160; &#160; &#160; INCLUDE &#34;amalloc.def&#34;! &#160; &#160; ENDIF!! &#160; &#160; call&#160; &#160; doerrhan&#160; &#160; ;Initialise a laughable error handler****************** 348,351 ****--- 356,371 ----heapblocks:&#160; &#160; defw &#160; &#160; 0&#160; &#160; ; Number of blocks+ IF DEFINED_USING_amalloc+ XREF ASMTAIL+ XDEF _heap+ ; The heap pointer will be wiped at startup,+ ; but first its value (based on ASMTAIL)+ ; will be kept for sbrk() to setup the malloc area+ _heap:+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw ASMTAIL&#160; &#160; ; Location of the last program byte+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw 0+ ENDIF++packintrout:&#160; &#160; defw&#160; &#160; 0&#160; &#160; ; Address of user interrupt routineIndex: zx80_crt0.asm===================================================================RCS file: /cvsroot/z88dk/z88dk/lib/zx80_crt0.asm,vretrieving revision 1.2retrieving revision 1.3diff -C2 -d -r1.2 -r1.3*** zx80_crt0.asm&#160; &#160; 2 Jan 2013 14:55:31 -0000&#160; &#160; 1.2--- zx80_crt0.asm&#160; &#160; 18 Jun 2013 06:11:23 -0000&#160; &#160; 1.3****************** 84,87 ****--- 84,94 ----ld&#160; &#160; &#160; (exitsp),sp+ ; Optional definition for auto MALLOC init+ ; it assumes we have free space between the end of+ ; the compiled program and the stack pointer+ &#160; &#160; IF DEFINED_USING_amalloc+ &#160; &#160; &#160; &#160; INCLUDE &#34;amalloc.def&#34;+ &#160; &#160; ENDIF+IF !DEFINED_nostreamsIF DEFINED_ANSIstdio****************** 179,182 ****--- 186,199 ----heaplast:&#160; &#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Address of last block on heapheapblocks:&#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Number of blocks+ IF DEFINED_USING_amalloc+ XREF ASMTAIL+ XDEF _heap+ ; The heap pointer will be wiped at startup,+ ; but first its value (based on ASMTAIL)+ ; will be kept for sbrk() to setup the malloc area+ _heap:+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw ASMTAIL&#160; &#160; ; Location of the last program byte+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw 0+ ENDIF;;snd_tick:&#160; &#160; &#160; &#160;defb&#160; &#160; 0&#160; &#160; &#160; &#160;; Flag for sound .. D3=out (n),a ..&#160; DB=in a,(m)Index: zx81_crt0.asm===================================================================RCS file: /cvsroot/z88dk/z88dk/lib/zx81_crt0.asm,vretrieving revision 1.35retrieving revision 1.36diff -C2 -d -r1.35 -r1.36*** zx81_crt0.asm&#160; &#160; 31 Jan 2012 20:58:07 -0000&#160; &#160; 1.35--- zx81_crt0.asm&#160; &#160; 18 Jun 2013 06:11:23 -0000&#160; &#160; 1.36****************** 138,141 ****--- 138,148 ----ld&#160; &#160; &#160; (exitsp),sp+ ; Optional definition for auto MALLOC init+ ; it assumes we have free space between the end of+ ; the compiled program and the stack pointer+ &#160; &#160; IF DEFINED_USING_amalloc+ &#160; &#160; &#160; &#160; INCLUDE &#34;amalloc.def&#34;+ &#160; &#160; ENDIF+IF !DEFINED_nostreamsIF DEFINED_ANSIstdio****************** 310,313 ****--- 317,330 ----heaplast:&#160; &#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Address of last block on heapheapblocks:&#160; &#160; &#160;defw&#160; &#160; 0&#160; &#160; &#160; &#160;; Number of blocks+ IF DEFINED_USING_amalloc+ XREF ASMTAIL+ XDEF _heap+ ; The heap pointer will be wiped at startup,+ ; but first its value (based on ASMTAIL)+ ; will be kept for sbrk() to setup the malloc area+ _heap:+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw ASMTAIL&#160; &#160; ; Location of the last program byte+&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;defw 0+ ENDIF;;snd_tick:&#160; &#160; &#160; &#160;defb&#160; &#160; 0&#160; &#160; &#160; &#160;; Flag for sound .. D3=out (n),a ..&#160; DB=in a,(m)------------------------------------------------------------------------------This SF.net email is sponsored by Windows:Build for Windows Store.http://p.sf.net/sfu/windows-dev2dev
</description>
<pubDate>Tue, 18 Jun 2013 07:11:26 +0100</pubDate>
</item>
<item>
<title>[Z88dk-commits] CVS: z88dk/src/z80asm/t whitebox-symtab.t,1.7,1.8 in Mailing Lists : z88dk-commits</title>
<link>http://www.z88dk.org/forum/viewtopic.php?pid=8624#8624</link>
<guid isPermaLink="false">8624@http://www.z88dk.org/forum</guid>
<description>Topic: [Z88dk-commits] CVS: z88dk/src/z80asm/t whitebox-symtab.t,1.7,1.8

Message: Update of /cvsroot/z88dk/z88dk/src/z80asm/tIn directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv1879/tModified Files:whitebox-symtab.tLog Message:New remove_all_{local,static,global}_syms( void ) functionsto encapsulate calls to get_global_tab().Index: whitebox-symtab.t===================================================================RCS file: /cvsroot/z88dk/z88dk/src/z80asm/t/whitebox-symtab.t,vretrieving revision 1.7retrieving revision 1.8diff -C2 -d -r1.7 -r1.8*** whitebox-symtab.t&#160; &#160; 16 Jun 2013 17:51:57 -0000&#160; &#160; 1.7--- whitebox-symtab.t&#160; &#160; 16 Jun 2013 22:25:39 -0000&#160; &#160; 1.8****************** 16,19 ****--- 16,23 ----# $Header$# $Log$+ # Revision 1.8&#160; 2013/06/16 22:25:39&#160; pauloscustodio+ # New remove_all_{local,static,global}_syms( void ) functions+ # to encapsulate calls to get_global_tab().+ ## Revision 1.7&#160; 2013/06/16 17:51:57&#160; pauloscustodio# get_all_syms() to get list of symbols matching a type mask, use in mapfile to decouple****************** 234,237 ****--- 238,253 ----dump_symtab();+ &#160; &#160; TITLE(&#34;Delete Local&#34;);+ &#160; &#160; remove_all_local_syms();+ &#160; &#160; dump_symtab();++ &#160; &#160; TITLE(&#34;Delete Static&#34;);+ &#160; &#160; remove_all_static_syms();+ &#160; &#160; dump_symtab();++ &#160; &#160; TITLE(&#34;Delete Global&#34;);+ &#160; &#160; remove_all_global_syms();+ &#160; &#160; dump_symtab();+TITLE(&#34;End&#34;);END****************** 560,586 ****Symbol NN (NN@...) = 12, type = 0x1B [DEFINED TOUCHED ADDR LOCAL ], ref = [10 6 8 ], owner = CURRENTMODULE! ---- TEST: End ----- memalloc strhash.c(1): free 32 bytes at ADDR_89 allocated at strhash.c(1)- memalloc strhash.c(1): free 32 bytes at ADDR_49 allocated at strhash.c(1)- memalloc strhash.c(1): free 32 bytes at ADDR_23 allocated at strhash.c(1)- memalloc symref.c(1): free 32 bytes at ADDR_128 allocated at symref.c(1)- memalloc symref.c(2): free 12 bytes at ADDR_133 allocated at symref.c(2)- memalloc symref.c(2): free 40 bytes at ADDR_125 allocated at symref.c(2)- memalloc sym.c(1): free 48 bytes at ADDR_124 allocated at sym.c(1)- memalloc strhash.c(2): free 384 bytes at ADDR_132 allocated at strhash.c(5)- memalloc strhash.c(2): free 44 bytes at ADDR_131 allocated at strhash.c(5)- memalloc strhash.c(3): free 40 bytes at ADDR_130 allocated at strhash.c(4)- memalloc symtab.c(1): free 32 bytes at ADDR_20 allocated at symtab.c(1)- memalloc strhash.c(1): free 32 bytes at ADDR_21 allocated at strhash.c(1)- memalloc symref.c(1): free 32 bytes at ADDR_145 allocated at symref.c(1)- memalloc symref.c(2): free 12 bytes at ADDR_150 allocated at symref.c(2)- memalloc symref.c(2): free 40 bytes at ADDR_142 allocated at symref.c(2)- memalloc sym.c(1): free 48 bytes at ADDR_141 allocated at sym.c(1)- memalloc strhash.c(2): free 384 bytes at ADDR_149 allocated at strhash.c(5)- memalloc strhash.c(2): free 44 bytes at ADDR_148 allocated at strhash.c(5)- memalloc strhash.c(3): free 40 bytes at ADDR_147 allocated at strhash.c(4)- memalloc symtab.c(1): free 32 bytes at ADDR_18 allocated at symtab.c(1)- memalloc strhash.c(1): free 32 bytes at ADDR_19 allocated at strhash.c(1)memalloc symref.c(1): free 32 bytes at ADDR_136 allocated at symref.c(1)memalloc symref.c(2): free 12 bytes at ADDR_137 allocated at symref.c(2)--- 576,581 ----Symbol NN (NN@...) = 12, type = 0x1B [DEFINED TOUCHED ADDR LOCAL ], ref = [10 6 8 ], owner = CURRENTMODULE! ---- TEST: Delete Local ----memalloc symref.c(1): free 32 bytes at ADDR_136 allocated at symref.c(1)memalloc symref.c(2): free 12 bytes at ADDR_137 allocated at symref.c(2)****************** 599,602 ****--- 594,639 ----memalloc strhash.c(2): free 44 bytes at ADDR_139 allocated at strhash.c(5)memalloc strhash.c(3): free 40 bytes at ADDR_157 allocated at strhash.c(4)+ Symtab &#34;global tab&#34;:+&#160; &#160;Symbol ASMPC (ASMPC) = 12, type = 0x03 [DEFINED TOUCHED ], ref = [3 ], owner = NULL+ Symtab &#34;static tab&#34;:+&#160; &#160;Symbol WIN32 (WIN32) = 1, type = 0x01 [DEFINED ], ref = [1 ], owner = NULL+ Symtab &#34;local tab&#34;: EMPTY++ ---- TEST: Delete Static ----++ memalloc symref.c(1): free 32 bytes at ADDR_128 allocated at symref.c(1)+ memalloc symref.c(2): free 12 bytes at ADDR_133 allocated at symref.c(2)+ memalloc symref.c(2): free 40 bytes at ADDR_125 allocated at symref.c(2)+ memalloc sym.c(1): free 48 bytes at ADDR_124 allocated at sym.c(1)+ memalloc strhash.c(2): free 384 bytes at ADDR_132 allocated at strhash.c(5)+ memalloc strhash.c(2): free 44 bytes at ADDR_131 allocated at strhash.c(5)+ memalloc strhash.c(3): free 40 bytes at ADDR_130 allocated at strhash.c(4)+ Symtab &#34;global tab&#34;:+&#160; &#160;Symbol ASMPC (ASMPC) = 12, type = 0x03 [DEFINED TOUCHED ], ref = [3 ], owner = NULL+ Symtab &#34;static tab&#34;: EMPTY+ Symtab &#34;local tab&#34;: EMPTY++ ---- TEST: Delete Global ----++ memalloc symref.c(1): free 32 bytes at ADDR_145 allocated at symref.c(1)+ memalloc symref.c(2): free 12 bytes at ADDR_150 allocated at symref.c(2)+ memalloc symref.c(2): free 40 bytes at ADDR_142 allocated at symref.c(2)+ memalloc sym.c(1): free 48 bytes at ADDR_141 allocated at sym.c(1)+ memalloc strhash.c(2): free 384 bytes at ADDR_149 allocated at strhash.c(5)+ memalloc strhash.c(2): free 44 bytes at ADDR_148 allocated at strhash.c(5)+ memalloc strhash.c(3): free 40 bytes at ADDR_147 allocated at strhash.c(4)+ Symtab &#34;global tab&#34;: EMPTY+ Symtab &#34;static tab&#34;: EMPTY+ Symtab &#34;local tab&#34;: EMPTY++ ---- TEST: End ----++ memalloc strhash.c(1): free 32 bytes at ADDR_89 allocated at strhash.c(1)+ memalloc strhash.c(1): free 32 bytes at ADDR_49 allocated at strhash.c(1)+ memalloc strhash.c(1): free 32 bytes at ADDR_23 allocated at strhash.c(1)+ memalloc symtab.c(1): free 32 bytes at ADDR_20 allocated at symtab.c(1)+ memalloc strhash.c(1): free 32 bytes at ADDR_21 allocated at strhash.c(1)+ memalloc symtab.c(1): free 32 bytes at ADDR_18 allocated at symtab.c(1)+ memalloc strhash.c(1): free 32 bytes at ADDR_19 allocated at strhash.c(1)memalloc symtab.c(1): free 32 bytes at ADDR_1 allocated at symtab.c(1)memalloc strhash.c(1): free 32 bytes at ADDR_2 allocated at strhash.c(1)------------------------------------------------------------------------------This SF.net email is sponsored by Windows:Build for Windows Store.http://p.sf.net/sfu/windows-dev2dev
</description>
<pubDate>Sun, 16 Jun 2013 23:25:41 +0100</pubDate>
</item>
<item>
<title>[Z88dk-commits] CVS: z88dk/src/z80asm symtab.c, 1.10, 1.11 symtab.h,
 in Mailing Lists : z88dk-commits</title>
<link>http://www.z88dk.org/forum/viewtopic.php?pid=8623#8623</link>
<guid isPermaLink="false">8623@http://www.z88dk.org/forum</guid>
<description>Topic: [Z88dk-commits] CVS: z88dk/src/z80asm symtab.c, 1.10, 1.11 symtab.h,

Message: Update of /cvsroot/z88dk/z88dk/src/z80asmIn directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv1879Modified Files:symtab.c symtab.h z80asm.cLog Message:New remove_all_{local,static,global}_syms( void ) functionsto encapsulate calls to get_global_tab().Index: symtab.c===================================================================RCS file: /cvsroot/z88dk/z88dk/src/z80asm/symtab.c,vretrieving revision 1.10retrieving revision 1.11diff -C2 -d -r1.10 -r1.11*** symtab.c&#160; &#160; 16 Jun 2013 20:14:39 -0000&#160; &#160; 1.10--- symtab.c&#160; &#160; 16 Jun 2013 22:25:39 -0000&#160; &#160; 1.11****************** 21,24 ****--- 21,28 ----$Header$$Log$+ Revision 1.11&#160; 2013/06/16 22:25:39&#160; pauloscustodio+ New remove_all_{local,static,global}_syms( void ) functions+ to encapsulate calls to get_global_tab().+Revision 1.10&#160; 2013/06/16 20:14:39&#160; pauloscustodioMove deffile writing to deffile.c, remove global variable deffile****************** 298,301 ****--- 302,312 ----/*-----------------------------------------------------------------------------+ *&#160; &#160;delete the static and global symbols+ *----------------------------------------------------------------------------*/+ void remove_all_local_syms( void )&#160; &#160; { SymbolHash_remove_all( CURRENTMODULE-&#62;local_tab ); }+ void remove_all_static_syms( void )&#160; &#160; { SymbolHash_remove_all( get_static_tab() ); }+ void remove_all_global_syms( void )&#160; &#160; { SymbolHash_remove_all( get_global_tab() ); }++ /*-----------------------------------------------------------------------------*&#160; &#160;create a local symbol:*&#160; &#160;a) if not yet in the local table (CURRENTMODULE), create itIndex: symtab.h===================================================================RCS file: /cvsroot/z88dk/z88dk/src/z80asm/symtab.h,vretrieving revision 1.8retrieving revision 1.9diff -C2 -d -r1.8 -r1.9*** symtab.h&#160; &#160; 16 Jun 2013 20:14:39 -0000&#160; &#160; 1.8--- symtab.h&#160; &#160; 16 Jun 2013 22:25:39 -0000&#160; &#160; 1.9****************** 21,24 ****--- 21,28 ----$Header$$Log$+ Revision 1.9&#160; 2013/06/16 22:25:39&#160; pauloscustodio+ New remove_all_{local,static,global}_syms( void ) functions+ to encapsulate calls to get_global_tab().+Revision 1.8&#160; 2013/06/16 20:14:39&#160; pauloscustodioMove deffile writing to deffile.c, remove global variable deffile****************** 108,111 ****--- 112,120 ----extern void copy_static_syms( void );+ /* delete the local, static and global symbols */+ extern void remove_all_local_syms( void );+ extern void remove_all_static_syms( void );+ extern void remove_all_global_syms( void );+/*-----------------------------------------------------------------------------*&#160; &#160;Global Symbol TablesIndex: z80asm.c===================================================================RCS file: /cvsroot/z88dk/z88dk/src/z80asm/z80asm.c,vretrieving revision 1.92retrieving revision 1.93diff -C2 -d -r1.92 -r1.93*** z80asm.c&#160; &#160; 16 Jun 2013 20:14:39 -0000&#160; &#160; 1.92--- z80asm.c&#160; &#160; 16 Jun 2013 22:25:39 -0000&#160; &#160; 1.93****************** 17,20 ****--- 17,24 ----/* $Header$ *//* $Log$+ /* Revision 1.93&#160; 2013/06/16 22:25:39&#160; pauloscustodio+ /* New remove_all_{local,static,global}_syms( void ) functions+ /* to encapsulate calls to get_global_tab().+ /*/* Revision 1.92&#160; 2013/06/16 20:14:39&#160; pauloscustodio/* Move deffile writing to deffile.c, remove global variable deffile****************** 857,862 ****close_error_file();!&#160; &#160; &#160; &#160; &#160;SymbolHash_remove_all( CURRENTMODULE-&#62;local_tab );!&#160; &#160; &#160; &#160; &#160;SymbolHash_remove_all( get_global_tab() );if ( verbose )--- 861,866 ----close_error_file();!&#160; &#160; &#160; &#160; &#160;remove_all_local_syms();!&#160; &#160; &#160; &#160; &#160;remove_all_global_syms();if ( verbose )------------------------------------------------------------------------------This SF.net email is sponsored by Windows:Build for Windows Store.http://p.sf.net/sfu/windows-dev2dev
</description>
<pubDate>Sun, 16 Jun 2013 23:25:41 +0100</pubDate>
</item>
<item>
<title>[Z88dk-commits] CVS: z88dk/src/z80asm/t option-g.t,1.3,1.4 in Mailing Lists : z88dk-commits</title>
<link>http://www.z88dk.org/forum/viewtopic.php?pid=8622#8622</link>
<guid isPermaLink="false">8622@http://www.z88dk.org/forum</guid>
<description>Topic: [Z88dk-commits] CVS: z88dk/src/z80asm/t option-g.t,1.3,1.4

Message: Update of /cvsroot/z88dk/z88dk/src/z80asm/tIn directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv29303/tModified Files:option-g.tLog Message:Move deffile writing to deffile.c, remove global variable deffileIndex: option-g.t===================================================================RCS file: /cvsroot/z88dk/z88dk/src/z80asm/t/option-g.t,vretrieving revision 1.3retrieving revision 1.4diff -C2 -d -r1.3 -r1.4*** option-g.t&#160; &#160; 12 Feb 2013 00:55:00 -0000&#160; &#160; 1.3--- option-g.t&#160; &#160; 16 Jun 2013 20:14:39 -0000&#160; &#160; 1.4****************** 16,19 ****--- 16,22 ----# $Header$# $Log$+ # Revision 1.4&#160; 2013/06/16 20:14:39&#160; pauloscustodio+ # Move deffile writing to deffile.c, remove global variable deffile+ ## Revision 1.3&#160; 2013/02/12 00:55:00&#160; pauloscustodio# CH_0017 : Align with spaces, deprecate -t option****************** 61,67 ****DEFC X31_X31_X31_X31_X31_X31_X31_X31 = $0004 ; Module TESTDEFC X_32_X32_X32_X32_X32_X32_X32_X32 = $0005 ; Module TEST-DEFC FUNC&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; = $0006 ; Module TEST2-END--- 64,68 ----------------------------------------------------------------------------------This SF.net email is sponsored by Windows:Build for Windows Store.http://p.sf.net/sfu/windows-dev2dev
</description>
<pubDate>Sun, 16 Jun 2013 21:14:42 +0100</pubDate>
</item>
<item>
<title>[Z88dk-commits] CVS: z88dk/src/z80asm deffile.c, NONE, 1.1 deffile.h, in Mailing Lists : z88dk-commits</title>
<link>http://www.z88dk.org/forum/viewtopic.php?pid=8621#8621</link>
<guid isPermaLink="false">8621@http://www.z88dk.org/forum</guid>
<description>Topic: [Z88dk-commits] CVS: z88dk/src/z80asm deffile.c, NONE, 1.1 deffile.h,

Message: Update of /cvsroot/z88dk/z88dk/src/z80asmIn directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv29303Modified Files:Makefile gccmake.bat mapfile.c modlink.c symtab.c symtab.hz80asm.c z80asm.h z80asm.vcxproj z80asm.vcxproj.filtersAdded Files:deffile.c deffile.hLog Message:Move deffile writing to deffile.c, remove global variable deffile--- NEW FILE: deffile.c ---/*ZZZZZZZZZZZZZZZZZZZZ&#160; &#160; 8888888888888&#160; &#160; &#160; &#160;00000000000ZZZZZZZZZZZZZZZZZZZZ&#160; &#160; 88888888888888888&#160; &#160; 0000000000000ZZZZZ&#160; &#160; &#160; 888&#160; &#160; &#160; &#160; &#160; &#160;888&#160; 0000&#160; &#160; &#160; &#160; &#160;0000ZZZZZ&#160; &#160; &#160; &#160; 88888888888888888&#160; 0000&#160; &#160; &#160; &#160; &#160;0000ZZZZZ&#160; &#160; &#160; &#160; &#160; &#160; 8888888888888&#160; &#160; 0000&#160; &#160; &#160; &#160; &#160;0000&#160; &#160; &#160; &#160;AAAAAA&#160; &#160; &#160; &#160; &#160;SSSSSSSSSSS&#160; &#160;MMMM&#160; &#160; &#160; &#160;MMMMZZZZZ&#160; &#160; &#160; &#160; &#160; &#160; 88888888888888888&#160; 0000&#160; &#160; &#160; &#160; &#160;0000&#160; &#160; &#160; AAAAAAAA&#160; &#160; &#160; SSSS&#160; &#160; &#160; &#160; &#160; &#160; MMMMMM&#160; &#160;MMMMMMZZZZZ&#160; &#160; &#160; &#160; &#160; &#160; &#160; 8888&#160; &#160; &#160; &#160; &#160;8888&#160; 0000&#160; &#160; &#160; &#160; &#160;0000&#160; &#160; &#160;AAAA&#160; AAAA&#160; &#160; &#160;SSSSSSSSSSS&#160; &#160; &#160;MMMMMMMMMMMMMMMZZZZZ&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; 8888&#160; &#160; &#160; &#160; &#160;8888&#160; 0000&#160; &#160; &#160; &#160; &#160;0000&#160; &#160; AAAAAAAAAAAA&#160; &#160; &#160; SSSSSSSSSSS&#160; &#160;MMMM MMMMM MMMMZZZZZZZZZZZZZZZZZZZZZ&#160; 88888888888888888&#160; &#160; 0000000000000&#160; &#160; &#160;AAAA&#160; &#160; &#160; AAAA&#160; &#160; &#160; &#160; &#160; &#160;SSSSS&#160; &#160;MMMM&#160; &#160; &#160; &#160;MMMMZZZZZZZZZZZZZZZZZZZZZ&#160; &#160; &#160; 8888888888888&#160; &#160; &#160; &#160;00000000000&#160; &#160; &#160;AAAA&#160; &#160; &#160; &#160; AAAA&#160; SSSSSSSSSSS&#160; &#160; &#160;MMMM&#160; &#160; &#160; &#160;MMMMCopyright (C) Paulo Custodio, 2011-2013Define file writing - list of all global address symbols after link phase in DEFC format$Header: /cvsroot/z88dk/z88dk/src/z80asm/deffile.c,v 1.1 2013/06/16 20:14:39 pauloscustodio Exp $$Log: deffile.c,v $Revision 1.1&#160; 2013/06/16 20:14:39&#160; pauloscustodioMove deffile writing to deffile.c, remove global variable deffile*/#include &#34;memalloc.h&#34;&#160; &#160;/* before any other include */#include &#34;deffile.h&#34;#include &#34;file.h&#34;#include &#34;listfile.h&#34;#include &#34;options.h&#34;#include &#34;symbol.h&#34;#include &#34;symtab.h&#34;#include &#34;z80asm.h&#34;/*-----------------------------------------------------------------------------*&#160; &#160;Write all symbols in given symbol table to given file*----------------------------------------------------------------------------*/static void write_def_syms( FILE *file, SymbolHash *symtab ){SymbolHashElem *iter;Symbol&#160; &#160; &#160; &#160; &#160;*sym;for ( iter = SymbolHash_first( symtab ); iter; iter = SymbolHash_next( iter ) ){sym = (Symbol *)iter-&#62;value;/* CH_0017 */fprintf( file, &#34;DEFC %-*s &#34;, COLUMN_WIDTH - 1, sym-&#62;name );if ( autorelocate ){fprintf( file, &#34;= $%04lX ; &#34;, sizeof_relocroutine + sizeof_reloctable + 4 + sym-&#62;value );}else{fprintf( file, &#34;= $%04lX ; &#34;, sym-&#62;value );}fprintf( file, &#34;Module %s\n&#34;, sym-&#62;owner-&#62;mname );}}/*-----------------------------------------------------------------------------*&#160; &#160;write full defition file to FILE.def, where FILE is the name of the first*&#160; &#160; linked source module*----------------------------------------------------------------------------*/void write_def_file( void ){char *filename;FILE *file;SymbolHash *def_symtab;/* use first module filename to create global def file */filename = def_filename_ext( modulehdr-&#62;first-&#62;cfile-&#62;fname ); /* set '.def' extension *//* Create DEF file */file = xfopen( filename, &#34;w&#34; );&#160; &#160; &#160; &#160; &#160; &#160;/* CH_0012 */if ( verbose ){puts( &#34;Creating global definition file...&#34; );}def_symtab = get_all_syms( SYMADDR | SYMLOCAL | SYMXDEF | SYMDEF,SYMADDR | 0&#160; &#160; &#160; &#160; | SYMXDEF | 0&#160; &#160; &#160; );/* Write symbols by address */SymbolHash_sort( def_symtab, SymbolHash_by_value );write_def_syms( file, def_symtab );OBJ_DELETE(def_symtab);xfclose( file );}--- NEW FILE: deffile.h ---/*ZZZZZZZZZZZZZZZZZZZZ&#160; &#160; 8888888888888&#160; &#160; &#160; &#160;00000000000ZZZZZZZZZZZZZZZZZZZZ&#160; &#160; 88888888888888888&#160; &#160; 0000000000000ZZZZZ&#160; &#160; &#160; 888&#160; &#160; &#160; &#160; &#160; &#160;888&#160; 0000&#160; &#160; &#160; &#160; &#160;0000ZZZZZ&#160; &#160; &#160; &#160; 88888888888888888&#160; 0000&#160; &#160; &#160; &#160; &#160;0000ZZZZZ&#160; &#160; &#160; &#160; &#160; &#160; 8888888888888&#160; &#160; 0000&#160; &#160; &#160; &#160; &#160;0000&#160; &#160; &#160; &#160;AAAAAA&#160; &#160; &#160; &#160; &#160;SSSSSSSSSSS&#160; &#160;MMMM&#160; &#160; &#160; &#160;MMMMZZZZZ&#160; &#160; &#160; &#160; &#160; &#160; 88888888888888888&#160; 0000&#160; &#160; &#160; &#160; &#160;0000&#160; &#160; &#160; AAAAAAAA&#160; &#160; &#160; SSSS&#160; &#160; &#160; &#160; &#160; &#160; MMMMMM&#160; &#160;MMMMMMZZZZZ&#160; &#160; &#160; &#160; &#160; &#160; &#160; 8888&#160; &#160; &#160; &#160; &#160;8888&#160; 0000&#160; &#160; &#160; &#160; &#160;0000&#160; &#160; &#160;AAAA&#160; AAAA&#160; &#160; &#160;SSSSSSSSSSS&#160; &#160; &#160;MMMMMMMMMMMMMMMZZZZZ&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; 8888&#160; &#160; &#160; &#160; &#160;8888&#160; 0000&#160; &#160; &#160; &#160; &#160;0000&#160; &#160; AAAAAAAAAAAA&#160; &#160; &#160; SSSSSSSSSSS&#160; &#160;MMMM MMMMM MMMMZZZZZZZZZZZZZZZZZZZZZ&#160; 88888888888888888&#160; &#160; 0000000000000&#160; &#160; &#160;AAAA&#160; &#160; &#160; AAAA&#160; &#160; &#160; &#160; &#160; &#160;SSSSS&#160; &#160;MMMM&#160; &#160; &#160; &#160;MMMMZZZZZZZZZZZZZZZZZZZZZ&#160; &#160; &#160; 8888888888888&#160; &#160; &#160; &#160;00000000000&#160; &#160; &#160;AAAA&#160; &#160; &#160; &#160; AAAA&#160; SSSSSSSSSSS&#160; &#160; &#160;MMMM&#160; &#160; &#160; &#160;MMMMCopyright (C) Paulo Custodio, 2011-2013Define file writing - list of all global address symbols after link phase in DEFC format$Header: /cvsroot/z88dk/z88dk/src/z80asm/deffile.h,v 1.1 2013/06/16 20:14:39 pauloscustodio Exp $$Log: deffile.h,v $Revision 1.1&#160; 2013/06/16 20:14:39&#160; pauloscustodioMove deffile writing to deffile.c, remove global variable deffile*/#ifndef DEFFILE_H#define DEFFILE_H#include &#34;memalloc.h&#34;&#160; &#160;/* before any other include */extern void write_def_file( void );#endif /* ndef DEFFILE_H */Index: Makefile===================================================================RCS file: /cvsroot/z88dk/z88dk/src/z80asm/Makefile,vretrieving revision 1.63retrieving revision 1.64diff -C2 -d -r1.63 -r1.64*** Makefile&#160; &#160; 16 Jun 2013 18:01:54 -0000&#160; &#160; 1.63--- Makefile&#160; &#160; 16 Jun 2013 20:14:39 -0000&#160; &#160; 1.64****************** 15,18 ****--- 15,21 ----# $Header$# $Log$+ # Revision 1.64&#160; 2013/06/16 20:14:39&#160; pauloscustodio+ # Move deffile writing to deffile.c, remove global variable deffile+ ## Revision 1.63&#160; 2013/06/16 18:01:54&#160; pauloscustodio# Add testzcc target to compile and run a few examples using the assembler.****************** 255,258 ****--- 258,262 ----class.o&#160; &#160; &#160; &#160; &#160; &#160; \codearea.o&#160; &#160; &#160; &#160; \+ &#160; &#160; deffile.o&#160; &#160; &#160; &#160; \die.o&#160; &#160; &#160; &#160; &#160; &#160; \dynstr.o&#160; &#160; &#160; &#160; \****************** 267,273 ****memalloc.o&#160; &#160; &#160; &#160; \model.o&#160; &#160; &#160; &#160; &#160; &#160; \- &#160; &#160; module.o&#160; &#160; &#160; &#160; \model_symref.o&#160; &#160; \modlink.o&#160; &#160; &#160; &#160; \objfile.o&#160; &#160; &#160; &#160; \options.o&#160; &#160; &#160; &#160; \--- 271,277 ----memalloc.o&#160; &#160; &#160; &#160; \model.o&#160; &#160; &#160; &#160; &#160; &#160; \model_symref.o&#160; &#160; \modlink.o&#160; &#160; &#160; &#160; \+ &#160; &#160; module.o&#160; &#160; &#160; &#160; \objfile.o&#160; &#160; &#160; &#160; \options.o&#160; &#160; &#160; &#160; \****************** 404,407 ****--- 408,415 ----codearea.o: classlist.h z80asm.h file.h safestr.h strlist.h listfile.hcodearea.o: dynstr.h+ deffile.o: memalloc.h except.h e4c.h deffile.h file.h safestr.h types.h+ deffile.o: strlist.h class.h queue.h listfile.h dynstr.h symref.h classlist.h+ deffile.o: options.h symbol.h model.h objfile.h symtab.h classhash.h+ deffile.o: strhash.h uthash.h die.h sym.h z80asm.h config.h ../config.hdie.o: memalloc.h except.h e4c.h die.h types.h strutil.h safestr.hdynstr.o: memalloc.h except.h e4c.h dynstr.h class.h queue.h types.h****************** 434,440 ****mapfile.o: ../config.hmemalloc.o: memalloc.h except.h e4c.h types.h die.h queue.h- module.o: memalloc.h except.h e4c.h module.h class.h queue.h types.h- module.o: classlist.h dynstr.h symtab.h classhash.h strhash.h uthash.h die.h- module.o: sym.h symref.hmodlink.o: memalloc.h except.h e4c.h codearea.h types.h config.h ../config.hmodlink.o: errors.h errors_def.h file.h safestr.h strlist.h class.h queue.h--- 442,445 ----****************** 442,445 ****--- 447,453 ----modlink.o: model.h objfile.h symtab.h classhash.h strhash.h uthash.h die.hmodlink.o: sym.h strpool.h strutil.h z80asm.h+ module.o: memalloc.h except.h e4c.h module.h class.h queue.h types.h+ module.o: classlist.h dynstr.h symtab.h classhash.h strhash.h uthash.h die.h+ module.o: sym.h symref.hobjfile.o: memalloc.h except.h e4c.h class.h queue.h types.h errors.hobjfile.o: errors_def.h file.h safestr.h strlist.h objfile.h strpool.h****************** 484,491 ****symtab.o: sym.h z80asm.h config.h ../config.hz80asm.o: memalloc.h except.h e4c.h codearea.h types.h config.h ../config.h! z80asm.o: errors.h errors_def.h file.h safestr.h strlist.h class.h queue.h! z80asm.o: hist.h listfile.h dynstr.h symref.h classlist.h mapfile.h objfile.h! z80asm.o: options.h symbol.h model.h symtab.h classhash.h strhash.h uthash.h! z80asm.o: die.h sym.h strpool.h strutil.h z80asm.hz80instr.o: memalloc.h except.h e4c.h config.h ../config.h z80asm.h types.hz80instr.o: sym.h class.h queue.h symref.h classlist.h symbol.h model.h--- 492,499 ----symtab.o: sym.h z80asm.h config.h ../config.hz80asm.o: memalloc.h except.h e4c.h codearea.h types.h config.h ../config.h! z80asm.o: deffile.h errors.h errors_def.h file.h safestr.h strlist.h class.h! z80asm.o: queue.h hist.h listfile.h dynstr.h symref.h classlist.h mapfile.h! z80asm.o: objfile.h options.h symbol.h model.h symtab.h classhash.h strhash.h! z80asm.o: uthash.h die.h sym.h strpool.h strutil.h z80asm.hz80instr.o: memalloc.h except.h e4c.h config.h ../config.h z80asm.h types.hz80instr.o: sym.h class.h queue.h symref.h classlist.h symbol.h model.hIndex: gccmake.bat===================================================================RCS file: /cvsroot/z88dk/z88dk/src/z80asm/gccmake.bat,vretrieving revision 1.12retrieving revision 1.13diff -C2 -d -r1.12 -r1.13*** gccmake.bat&#160; &#160; 15 Jun 2013 00:26:23 -0000&#160; &#160; 1.12--- gccmake.bat&#160; &#160; 16 Jun 2013 20:14:39 -0000&#160; &#160; 1.13****************** 9,12 ****--- 9,13 ----gcc -c -o class.o&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; class.cgcc -c -o codearea.o&#160; &#160; &#160; &#160; &#160; &#160; &#160;codearea.c+ gcc -c -o deffile.o&#160; &#160; &#160; &#160; &#160; &#160; &#160; deffile.cgcc -c -o die.o&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; die.cgcc -c -o dynstr.o&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;dynstr.c****************** 21,27 ****gcc -c -o memalloc.o&#160; &#160; &#160; &#160; &#160; &#160; &#160;memalloc.cgcc -c -o model.o&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; model.c- gcc -c -o module.o&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;module.cgcc -c -o model_symref.o&#160; &#160; &#160; &#160; &#160;model_symref.cgcc -c -o modlink.o&#160; &#160; &#160; &#160; &#160; &#160; &#160; modlink.cgcc -c -o objfile.o&#160; &#160; &#160; &#160; &#160; &#160; &#160; objfile.cgcc -c -o options.o&#160; &#160; &#160; &#160; &#160; &#160; &#160; options.c--- 22,28 ----gcc -c -o memalloc.o&#160; &#160; &#160; &#160; &#160; &#160; &#160;memalloc.cgcc -c -o model.o&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; model.cgcc -c -o model_symref.o&#160; &#160; &#160; &#160; &#160;model_symref.cgcc -c -o modlink.o&#160; &#160; &#160; &#160; &#160; &#160; &#160; modlink.c+ gcc -c -o module.o&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;module.cgcc -c -o objfile.o&#160; &#160; &#160; &#160; &#160; &#160; &#160; objfile.cgcc -c -o options.o&#160; &#160; &#160; &#160; &#160; &#160; &#160; options.cIndex: mapfile.c===================================================================RCS file: /cvsroot/z88dk/z88dk/src/z80asm/mapfile.c,vretrieving revision 1.3retrieving revision 1.4diff -C2 -d -r1.3 -r1.4*** mapfile.c&#160; &#160; 16 Jun 2013 17:51:57 -0000&#160; &#160; 1.3--- mapfile.c&#160; &#160; 16 Jun 2013 20:14:39 -0000&#160; &#160; 1.4****************** 17,20 ****--- 17,23 ----$Header$$Log$+ Revision 1.4&#160; 2013/06/16 20:14:39&#160; pauloscustodio+ Move deffile writing to deffile.c, remove global variable deffile+Revision 1.3&#160; 2013/06/16 17:51:57&#160; pauloscustodioget_all_syms() to get list of symbols matching a type mask, use in mapfile to decouple****************** 101,109 ****}! &#160; &#160; /* copy all local symbols from all modules to a map_symtab */!! &#160; &#160; /* BUG_0036 - need to create coposed symbol names NAME@..., so that local symbols in different modules! &#160; &#160;&#160; &#160; are shown */! &#160; &#160; map_symtab = get_all_syms( SYMADDR );if ( SymbolHash_empty( map_symtab ) ){--- 104,110 ----}! &#160; &#160; /* BUG_0036 - need to create coposed symbol names NAME@..., so that local symbols! &#160; &#160;&#160; &#160; in different modules are shown */! &#160; &#160; map_symtab = get_all_syms( SYMADDR, SYMADDR );if ( SymbolHash_empty( map_symtab ) ){Index: modlink.c===================================================================RCS file: /cvsroot/z88dk/z88dk/src/z80asm/modlink.c,vretrieving revision 1.65retrieving revision 1.66diff -C2 -d -r1.65 -r1.66*** modlink.c&#160; &#160; 15 Jun 2013 00:26:23 -0000&#160; &#160; 1.65--- modlink.c&#160; &#160; 16 Jun 2013 20:14:39 -0000&#160; &#160; 1.66****************** 17,20 ****--- 17,23 ----/* $Header$ *//* $Log$+ /* Revision 1.66&#160; 2013/06/16 20:14:39&#160; pauloscustodio+ /* Move deffile writing to deffile.c, remove global variable deffile+ /*/* Revision 1.65&#160; 2013/06/15 00:26:23&#160; pauloscustodio/* Move mapfile writing to mapfile.c.****************** 420,430 ****void ReadNames( char *filename, FILE *file, long nextname, long endnames );void ReadExpr( long nextexpr, long endexpr );- void WriteDefFile( SymbolHash *symtab );- void CreateDeffile( void );void ReleaseLinkInfo( void );static char *CheckIfModuleWanted( FILE *file, long currentlibmodule, char *modname );/* global variables */! extern FILE *z80asmfile, *deffile;extern char line[], ident[];extern char Z80objhdr[];--- 423,431 ----void ReadNames( char *filename, FILE *file, long nextname, long endnames );void ReadExpr( long nextexpr, long endexpr );void ReleaseLinkInfo( void );static char *CheckIfModuleWanted( FILE *file, long currentlibmodule, char *modname );/* global variables */! extern FILE *z80asmfile;extern char line[], ident[];extern char Z80objhdr[];****************** 1370,1410 ****void- CreateDeffile( void )- {-&#160; &#160; &#160;char globaldefname[FILENAME_MAX];--&#160; &#160; &#160;/* use first module filename to create global definition file */- &#160; &#160; path_replace_ext( globaldefname, modulehdr-&#62;first-&#62;cfile-&#62;fname, FILEEXT_DEF ); /* set '.def' extension */--&#160; &#160; &#160;/* Create DEFC file with global label declarations */-&#160; &#160; &#160;deffile = fopen_err( globaldefname, &#34;w&#34; );&#160; &#160; &#160; &#160; &#160; &#160;/* CH_0012 */- }--- void- WriteDefFile( SymbolHash *symtab )- {- &#160; &#160; SymbolHashElem *iter;- &#160; &#160; Symbol&#160; &#160; &#160; &#160; &#160;*sym;-- &#160; &#160; SymbolHash_sort( symtab, SymbolHash_by_name );- &#160; &#160; for ( iter = SymbolHash_first( symtab ); iter; iter = SymbolHash_next( iter ) )- &#160; &#160; {- &#160; &#160; &#160; &#160; sym = (Symbol *)iter-&#62;value;- &#160; &#160; &#160; &#160; if ( ( sym-&#62;type &#38; SYMTOUCHED ) &#38;&#38;&#160; &#160;( sym-&#62;type &#38; SYMADDR ) &#38;&#38;- &#160; &#160; &#160; &#160; &#160; &#160;&#160; ( sym-&#62;type &#38; SYMXDEF&#160; &#160; ) &#38;&#38; ! ( sym-&#62;type &#38; SYMDEF&#160; ) )- &#160; &#160; &#160; &#160; {- &#160; &#160; &#160; &#160; &#160; &#160; /* Write only global definitions - not library routines&#160; &#160; &#160;*/-&#160; &#160; &#160; &#160; &#160; &#160; &#160; /* CH_0017 */- &#160; &#160; &#160; &#160; &#160; &#160; fprintf( deffile, &#34;DEFC %-*s &#34;, COLUMN_WIDTH - 1, sym-&#62;name );- &#160; &#160; &#160; &#160; &#160; &#160; fprintf( deffile, &#34;= $%04lX ; &#34;, sym-&#62;value + modulehdr-&#62;first-&#62;origin + CURRENTMODULE-&#62;startoffset );- &#160; &#160; &#160; &#160; &#160; &#160; fprintf( deffile, &#34;Module %s\n&#34;, sym-&#62;owner-&#62;mname );- &#160; &#160; &#160; &#160; }- &#160; &#160; }- }---- voidReleaseLinkInfo( void ){--- 1371,1374 ----Index: symtab.c===================================================================RCS file: /cvsroot/z88dk/z88dk/src/z80asm/symtab.c,vretrieving revision 1.9retrieving revision 1.10diff -C2 -d -r1.9 -r1.10*** symtab.c&#160; &#160; 16 Jun 2013 17:51:57 -0000&#160; &#160; 1.9--- symtab.c&#160; &#160; 16 Jun 2013 20:14:39 -0000&#160; &#160; 1.10****************** 21,24 ****--- 21,27 ----$Header$$Log$+ Revision 1.10&#160; 2013/06/16 20:14:39&#160; pauloscustodio+ Move deffile writing to deffile.c, remove global variable deffile+Revision 1.9&#160; 2013/06/16 17:51:57&#160; pauloscustodioget_all_syms() to get list of symbols matching a type mask, use in mapfile to decouple****************** 244,248 *****&#160; &#160;copy all SYMADDR symbols to target, replacing NAME by NAME@...*----------------------------------------------------------------------------*/! static void copy_full_sym_names( SymbolHash *target, SymbolHash *source, byte_t type_mask ){SymbolHashElem *iter;--- 247,252 ----*&#160; &#160;copy all SYMADDR symbols to target, replacing NAME by NAME@...*----------------------------------------------------------------------------*/! static void copy_full_sym_names( SymbolHash *target, SymbolHash *source,! &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&#160; byte_t type_mask, byte_t type_value ){SymbolHashElem *iter;****************** 253,257 ****sym = (Symbol *)iter-&#62;value;! &#160; &#160; &#160; &#160; if ( sym-&#62;type &#38; type_mask )SymbolHash_set( target, Symbol_fullname(sym), Symbol_clone(sym) );}--- 257,261 ----sym = (Symbol *)iter-&#62;value;! &#160; &#160; &#160; &#160; if ( (sym-&#62;type &#38; type_mask) == (type_value &#38; type_mask) )SymbolHash_set( target, Symbol_fullname(sym), Symbol_clone(sym) );}****************** 261,266 *****&#160; &#160;get the list of symbols that match the given type mask,*&#160; &#160;mapped NAME@... -&#62; Symbol, needs to be deleted by OBJ_DELETE()*----------------------------------------------------------------------------*/! SymbolHash *get_all_syms( byte_t type_mask ){SymbolHash *all_syms = OBJ_NEW(SymbolHash);--- 265,271 ----*&#160; &#160;get the list of symbols that match the given type mask,*&#160; &#160;mapped NAME@... -&#62; Symbol, needs to be deleted by OBJ_DELETE()+ *&#160; &#160;Selects symbols where (type &#38; type_mask) == type_value*----------------------------------------------------------------------------*/! SymbolHash *get_all_syms( byte_t type_mask, byte_t type_value ){SymbolHash *all_syms = OBJ_NEW(SymbolHash);****************** 269,276 ****for ( cmodule = modulehdr-&#62;first; cmodule != NULL; cmodule = cmodule-&#62;nextmodule ){! &#160; &#160;&#160; &#160; &#160;copy_full_sym_names( all_syms, cmodule-&#62;local_tab, type_mask );}!&#160; &#160; &#160;copy_full_sym_names( all_syms, get_global_tab(), type_mask );return all_syms;--- 274,281 ----for ( cmodule = modulehdr-&#62;first; cmodule != NULL; cmodule = cmodule-&#62;nextmodule ){! &#160; &#160;&#160; &#160; &#160;copy_full_sym_names( all_syms, cmodule-&#62;local_tab, type_mask, type_value );}!&#160; &#160; &#160;copy_full_sym_names( all_syms, get_global_tab(), type_mask, type_value );return all_syms;Index: symtab.h===================================================================RCS file: /cvsroot/z88dk/z88dk/src/z80asm/symtab.h,vretrieving revision 1.7retrieving revision 1.8diff -C2 -d -r1.7 -r1.8*** symtab.h&#160; &#160; 16 Jun 2013 17:51:57 -0000&#160; &#160; 1.7--- symtab.h&#160; &#160; 16 Jun 2013 20:14:39 -0000&#160; &#160; 1.8****************** 21,24 ****--- 21,27 ----$Header$$Log$+ Revision 1.8&#160; 2013/06/16 20:14:39&#160; pauloscustodio+ Move deffile writing to deffile.c, remove global variable deffile+Revision 1.7&#160; 2013/06/16 17:51:57&#160; pauloscustodioget_all_syms() to get list of symbols matching a type mask, use in mapfile to decouple****************** 98,103 ****/* get the list of symbols that match the given type mask,!&#160; &#160; mapped NAME@... -&#62; Symbol, needs to be deleted by OBJ_DELETE() */! extern SymbolHash *get_all_syms( byte_t type_mask );/* copy the static symbols to CURRENTMODULE-&#62;local_tab */--- 101,107 ----/* get the list of symbols that match the given type mask,!&#160; &#160; mapped NAME@... -&#62; Symbol, needs to be deleted by OBJ_DELETE()!&#160; &#160; Selects symbols where (type &#38; type_mask) == type_value */! extern SymbolHash *get_all_syms( byte_t type_mask, byte_t type_value );/* copy the static symbols to CURRENTMODULE-&#62;local_tab */Index: z80asm.c===================================================================RCS file: /cvsroot/z88dk/z88dk/src/z80asm/z80asm.c,vretrieving revision 1.91retrieving revision 1.92diff -C2 -d -r1.91 -r1.92*** z80asm.c&#160; &#160; 15 Jun 2013 00:26:23 -0000&#160; &#160; 1.91--- z80asm.c&#160; &#160; 16 Jun 2013 20:14:39 -0000&#160; &#160; 1.92****************** 17,20 ****--- 17,23 ----/* $Header$ *//* $Log$+ /* Revision 1.92&#160; 2013/06/16 20:14:39&#160; pauloscustodio+ /* Move deffile writing to deffile.c, remove global variable deffile+ /*/* Revision 1.91&#160; 2013/06/15 00:26:23&#160; pauloscustodio/* Move mapfile writing to mapfile.c.****************** 547,550 ****--- 550,554 ----#include &#34;codearea.h&#34;#include &#34;config.h&#34;+ #include &#34;deffile.h&#34;#include &#34;errors.h&#34;#include &#34;file.h&#34;****************** 573,578 ****void LinkModules( void );void DeclModuleName( void );- void CreateDeffile( void );- void WriteDefFile( SymbolHash *symtab );void CreateBinFile( void );struct sourcefile *Newfile( struct sourcefile *curfile, char *fname );--- 577,580 ----****************** 594,598 ****! FILE *z80asmfile, *objfile, *deffile;/* BUG_0001 array ssym[] needs to have one element per character in--- 596,600 ----! FILE *z80asmfile, *objfile;/* BUG_0001 array ssym[] needs to have one element per character in****************** 669,677 ****CURRENTFILE = Newfile( NULL, src_filename );-&#160; &#160; &#160;if ( globaldef &#38;&#38; CURRENTMODULE == modulehdr-&#62;first )-&#160; &#160; &#160;{-&#160; &#160; &#160; &#160; &#160;CreateDeffile();-&#160; &#160; &#160;}-query_assemble( src_filename, obj_filename );set_error_null();&#160; &#160; &#160; &#160; &#160; &#160;/* no more module in error messages */--- 671,674 ----****************** 860,869 ****close_error_file();-&#160; &#160; &#160; &#160; &#160;if ( globaldef )-&#160; &#160; &#160; &#160; &#160;{-&#160; &#160; &#160; &#160; &#160; &#160; &#160;WriteDefFile( get_global_tab() );-&#160; &#160; &#160; &#160; &#160; &#160; &#160;fputc_err( '\n', deffile );&#160; &#160; /* separate DEFC lines for each module */-&#160; &#160; &#160; &#160; &#160;}-SymbolHash_remove_all( CURRENTMODULE-&#62;local_tab );SymbolHash_remove_all( get_global_tab() );--- 857,860 ----****************** 1363,1372 ****CloseFiles();-&#160; &#160; &#160; &#160; &#160;if ( globaldef )-&#160; &#160; &#160; &#160; &#160;{-&#160; &#160; &#160; &#160; &#160; &#160; &#160;fclose( deffile );-&#160; &#160; &#160; &#160; &#160; &#160; &#160;deffile = NULL;-&#160; &#160; &#160; &#160; &#160;}-/* Create library */if ( createlibrary &#38;&#38; ! get_num_errors() )--- 1354,1357 ----****************** 1393,1396 ****--- 1378,1386 ----}+ &#160; &#160; &#160; &#160; &#160; &#160; if ( globaldef )+ &#160; &#160; &#160; &#160; &#160; &#160; {+ &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; write_def_file();+ &#160; &#160; &#160; &#160; &#160; &#160; }+CreateBinFile();}Index: z80asm.h===================================================================RCS file: /cvsroot/z88dk/z88dk/src/z80asm/z80asm.h,vretrieving revision 1.34retrieving revision 1.35diff -C2 -d -r1.34 -r1.35*** z80asm.h&#160; &#160; 15 Jun 2013 00:26:23 -0000&#160; &#160; 1.34--- z80asm.h&#160; &#160; 16 Jun 2013 20:14:39 -0000&#160; &#160; 1.35****************** 17,20 ****--- 17,23 ----$Header$$Log$+ Revision 1.35&#160; 2013/06/16 20:14:39&#160; pauloscustodio+ Move deffile writing to deffile.c, remove global variable deffile+Revision 1.34&#160; 2013/06/15 00:26:23&#160; pauloscustodioMove mapfile writing to mapfile.c.****************** 198,202 ****extern struct module *CURRENTMODULE;extern struct modules *modulehdr;! extern FILE *z80asmfile, *deffile;extern Symbol *ASMPC;extern size_t sizeof_relocroutine, sizeof_reloctable;--- 201,205 ----extern struct module *CURRENTMODULE;extern struct modules *modulehdr;! extern FILE *z80asmfile;extern Symbol *ASMPC;extern size_t sizeof_relocroutine, sizeof_reloctable;Index: z80asm.vcxproj===================================================================RCS file: /cvsroot/z88dk/z88dk/src/z80asm/z80asm.vcxproj,vretrieving revision 1.14retrieving revision 1.15diff -C2 -d -r1.14 -r1.15*** z80asm.vcxproj&#160; &#160; 15 Jun 2013 00:26:23 -0000&#160; &#160; 1.14--- z80asm.vcxproj&#160; &#160; 16 Jun 2013 20:14:39 -0000&#160; &#160; 1.15****************** 87,90 ****--- 87,91 ----&#60;ClInclude Include=&#34;codearea.h&#34; /&#62;&#60;ClInclude Include=&#34;config.h&#34; /&#62;+&#160; &#160; &#160;&#60;ClInclude Include=&#34;deffile.h&#34; /&#62;&#60;ClInclude Include=&#34;die.h&#34; /&#62;&#60;ClInclude Include=&#34;dynstr.h&#34; /&#62;****************** 126,129 ****--- 127,131 ----&#60;ClCompile Include=&#34;class.c&#34; /&#62;&#60;ClCompile Include=&#34;codearea.c&#34; /&#62;+&#160; &#160; &#160;&#60;ClCompile Include=&#34;deffile.c&#34; /&#62;&#60;ClCompile Include=&#34;die.c&#34; /&#62;&#60;ClCompile Include=&#34;dynstr.c&#34; /&#62;Index: z80asm.vcxproj.filters===================================================================RCS file: /cvsroot/z88dk/z88dk/src/z80asm/z80asm.vcxproj.filters,vretrieving revision 1.14retrieving revision 1.15diff -C2 -d -r1.14 -r1.15*** z80asm.vcxproj.filters&#160; &#160; 15 Jun 2013 00:26:23 -0000&#160; &#160; 1.14--- z80asm.vcxproj.filters&#160; &#160; 16 Jun 2013 20:14:39 -0000&#160; &#160; 1.15****************** 136,139 ****--- 136,142 ----&#60;Filter&#62;Header Files&#60;/Filter&#62;&#60;/ClInclude&#62;+&#160; &#160; &#160;&#60;ClInclude Include=&#34;deffile.h&#34;&#62;+&#160; &#160; &#160; &#160;&#60;Filter&#62;Header Files&#60;/Filter&#62;+&#160; &#160; &#160;&#60;/ClInclude&#62;&#60;/ItemGroup&#62;&#60;ItemGroup&#62;****************** 255,258 ****--- 258,264 ----&#60;Filter&#62;Source Files&#60;/Filter&#62;&#60;/ClCompile&#62;+&#160; &#160; &#160;&#60;ClCompile Include=&#34;deffile.c&#34;&#62;+&#160; &#160; &#160; &#160;&#60;Filter&#62;Source Files&#60;/Filter&#62;+&#160; &#160; &#160;&#60;/ClCompile&#62;&#60;/ItemGroup&#62;&#60;/Project&#62;\ No newline at end of file------------------------------------------------------------------------------This SF.net email is sponsored by Windows:Build for Windows Store.http://p.sf.net/sfu/windows-dev2dev
</description>
<pubDate>Sun, 16 Jun 2013 21:14:42 +0100</pubDate>
</item>
<item>
<title>[Z88dk-commits] CVS: z88dk/src/z80asm Makefile,1.62,1.63 in Mailing Lists : z88dk-commits</title>
<link>http://www.z88dk.org/forum/viewtopic.php?pid=8620#8620</link>
<guid isPermaLink="false">8620@http://www.z88dk.org/forum</guid>
<description>Topic: [Z88dk-commits] CVS: z88dk/src/z80asm Makefile,1.62,1.63

Message: Update of /cvsroot/z88dk/z88dk/src/z80asmIn directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv23592Modified Files:MakefileLog Message:Add testzcc target to compile and run a few examples using the assembler.Index: Makefile===================================================================RCS file: /cvsroot/z88dk/z88dk/src/z80asm/Makefile,vretrieving revision 1.62retrieving revision 1.63diff -C2 -d -r1.62 -r1.63*** Makefile&#160; &#160; 15 Jun 2013 00:26:23 -0000&#160; &#160; 1.62--- Makefile&#160; &#160; 16 Jun 2013 18:01:54 -0000&#160; &#160; 1.63****************** 15,18 ****--- 15,21 ----# $Header$# $Log$+ # Revision 1.63&#160; 2013/06/16 18:01:54&#160; pauloscustodio+ # Add testzcc target to compile and run a few examples using the assembler.+ ## Revision 1.62&#160; 2013/06/15 00:26:23&#160; pauloscustodio# Move mapfile writing to mapfile.c.****************** 321,325 ****clean :! &#160; &#160; $(RM) *.o *.exe *~ *.bak *.orig core $(TARGET) test* t/*.tmp t/developer/*.tmp zcc_opt.def$(RM) -rf Debug Release x1 x2 x3--- 324,329 ----clean :! &#160; &#160; $(RM) *.o *.exe *~ *.bak *.orig core $(TARGET) test* t/*.tmp t/developer/*.tmp! &#160; &#160; $(RM) microman.bin microman.tap mandel.bin mandel.tap zcc_opt.def$(RM) -rf Debug Release x1 x2 x3****************** 331,334 ****--- 335,344 ----make Z80ASM=$(MSVC_TARGET) test+ testzcc : $(TARGET)+ &#160; &#160; zcc +zx -lndos&#160; &#160; &#160; &#160;-create-app -omicroman.bin ../../examples/microman.c+ &#160; &#160; zcc +zx -lndos -lmzx -create-app -omandel.bin&#160; &#160;../../examples/graphics/mandel.c+ &#160; &#160; eightyone microman.tap+ &#160; &#160; eightyone mandel.tap+# build with msvc - need to build manualy, devenv not available in Express$(MSVC_TARGET) : $(wildcard *.c) $(wildcard *.h)****************** 466,470 ****sym.o: memalloc.h except.h e4c.h listfile.h class.h queue.h types.h dynstr.hsym.o: symref.h classlist.h options.h symbol.h model.h objfile.h symtab.h! sym.o: classhash.h strhash.h uthash.h die.h sym.h strpool.hsymref.o: memalloc.h except.h e4c.h symref.h class.h queue.h types.hsymref.o: classlist.h--- 476,480 ----sym.o: memalloc.h except.h e4c.h listfile.h class.h queue.h types.h dynstr.hsym.o: symref.h classlist.h options.h symbol.h model.h objfile.h symtab.h! sym.o: classhash.h strhash.h uthash.h die.h sym.h safestr.h strpool.hsymref.o: memalloc.h except.h e4c.h symref.h class.h queue.h types.hsymref.o: classlist.h------------------------------------------------------------------------------This SF.net email is sponsored by Windows:Build for Windows Store.http://p.sf.net/sfu/windows-dev2dev
</description>
<pubDate>Sun, 16 Jun 2013 19:01:56 +0100</pubDate>
</item>
<item>
<title>[Z88dk-commits] CVS: z88dk/src/z80asm/t whitebox-symtab.t,1.6,1.7 in Mailing Lists : z88dk-commits</title>
<link>http://www.z88dk.org/forum/viewtopic.php?pid=8619#8619</link>
<guid isPermaLink="false">8619@http://www.z88dk.org/forum</guid>
<description>Topic: [Z88dk-commits] CVS: z88dk/src/z80asm/t whitebox-symtab.t,1.6,1.7

Message: Update of /cvsroot/z88dk/z88dk/src/z80asm/tIn directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv22965/tModified Files:whitebox-symtab.tLog Message:get_all_syms() to get list of symbols matching a type mask, use in mapfile to decoupleit from get_global_tab()Index: whitebox-symtab.t===================================================================RCS file: /cvsroot/z88dk/z88dk/src/z80asm/t/whitebox-symtab.t,vretrieving revision 1.6retrieving revision 1.7diff -C2 -d -r1.6 -r1.7*** whitebox-symtab.t&#160; &#160; 16 Jun 2013 16:49:20 -0000&#160; &#160; 1.6--- whitebox-symtab.t&#160; &#160; 16 Jun 2013 17:51:57 -0000&#160; &#160; 1.7****************** 16,19 ****--- 16,23 ----# $Header$# $Log$+ # Revision 1.7&#160; 2013/06/16 17:51:57&#160; pauloscustodio+ # get_all_syms() to get list of symbols matching a type mask, use in mapfile to decouple+ # it from get_global_tab()+ ## Revision 1.6&#160; 2013/06/16 16:49:20&#160; pauloscustodio# Symbol_fullname() to return full symbol name NAME@...****************** 62,65 ****--- 66,71 ----struct module the_module;struct module *CURRENTMODULE = &#38;the_module;+ struct modules the_modules;+ struct modules *modulehdr = &#38;the_modules;extern SymbolHash *get_static_tab(void);****************** 140,143 ****--- 146,151 ----TITLE(&#34;Create current module&#34;);CURRENTMODULE-&#62;local_tab&#160; &#160;= OBJ_NEW(SymbolHash);+ &#160; &#160; modulehdr-&#62;first = CURRENTMODULE;+ &#160; &#160; CURRENTMODULE-&#62;nextmodule = NULL;TITLE(&#34;Create symbol&#34;);------------------------------------------------------------------------------This SF.net email is sponsored by Windows:Build for Windows Store.http://p.sf.net/sfu/windows-dev2dev
</description>
<pubDate>Sun, 16 Jun 2013 18:51:59 +0100</pubDate>
</item>
<item>
<title>[Z88dk-commits] CVS: z88dk/src/z80asm mapfile.c, 1.2, 1.3 symtab.c,
	 in Mailing Lists : z88dk-commits</title>
<link>http://www.z88dk.org/forum/viewtopic.php?pid=8618#8618</link>
<guid isPermaLink="false">8618@http://www.z88dk.org/forum</guid>
<description>Topic: [Z88dk-commits] CVS: z88dk/src/z80asm mapfile.c, 1.2, 1.3 symtab.c,&#160; &#160; 

Message: Update of /cvsroot/z88dk/z88dk/src/z80asmIn directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv22965Modified Files:mapfile.c symtab.c symtab.hLog Message:get_all_syms() to get list of symbols matching a type mask, use in mapfile to decoupleit from get_global_tab()Index: mapfile.c===================================================================RCS file: /cvsroot/z88dk/z88dk/src/z80asm/mapfile.c,vretrieving revision 1.2retrieving revision 1.3diff -C2 -d -r1.2 -r1.3*** mapfile.c&#160; &#160; 16 Jun 2013 16:49:20 -0000&#160; &#160; 1.2--- mapfile.c&#160; &#160; 16 Jun 2013 17:51:57 -0000&#160; &#160; 1.3****************** 17,20 ****--- 17,24 ----$Header$$Log$+ Revision 1.3&#160; 2013/06/16 17:51:57&#160; pauloscustodio+ get_all_syms() to get list of symbols matching a type mask, use in mapfile to decouple+ it from get_global_tab()+Revision 1.2&#160; 2013/06/16 16:49:20&#160; pauloscustodioSymbol_fullname() to return full symbol name NAME@...****************** 77,97 ****/*------------------------------------------------------------------------------ *&#160; &#160;copy all SYMADDR symbols to target, replacing NAME by NAME@...- *----------------------------------------------------------------------------*/- static void copy_full_sym_names( SymbolHash *target, SymbolHash *source )- {- &#160; &#160; SymbolHashElem *iter;- &#160; &#160; Symbol&#160; &#160; &#160; &#160; &#160;*sym;-- &#160; &#160; for ( iter = SymbolHash_first( source ); iter; iter = SymbolHash_next( iter ) )- &#160; &#160; {- &#160; &#160; &#160; &#160; sym = (Symbol *)iter-&#62;value;-- &#160; &#160; &#160; &#160; if ( sym-&#62;type &#38; SYMADDR )- &#160; &#160; &#160; &#160; &#160; &#160; SymbolHash_set( target, Symbol_fullname(sym), Symbol_clone(sym) );- &#160; &#160; }- }-- /*-----------------------------------------------------------------------------*&#160; &#160;write full mapfile to FILE.map, where FILE is the name of the first*&#160; &#160; linked source module--- 81,84 ----****************** 102,106 ****FILE *file;SymbolHash *map_symtab;-&#160; &#160; &#160;struct module *cmodule;/* use first module filename to create global map file */--- 89,92 ----****************** 119,130 ****/* BUG_0036 - need to create coposed symbol names NAME@..., so that local symbols in different modulesare shown */! &#160; &#160; map_symtab = OBJ_NEW(SymbolHash);! &#160; &#160; for ( cmodule = modulehdr-&#62;first; cmodule != NULL; cmodule = cmodule-&#62;nextmodule )!&#160; &#160; &#160;{! &#160; &#160;&#160; &#160; &#160;copy_full_sym_names( map_symtab, cmodule-&#62;local_tab );!&#160; &#160; &#160;}!!&#160; &#160; &#160;copy_full_sym_names( map_symtab, get_global_tab() );!if ( SymbolHash_empty( map_symtab ) ){--- 105,109 ----/* BUG_0036 - need to create coposed symbol names NAME@..., so that local symbols in different modulesare shown */! &#160; &#160; map_symtab = get_all_syms( SYMADDR );if ( SymbolHash_empty( map_symtab ) ){Index: symtab.c===================================================================RCS file: /cvsroot/z88dk/z88dk/src/z80asm/symtab.c,vretrieving revision 1.8retrieving revision 1.9diff -C2 -d -r1.8 -r1.9*** symtab.c&#160; &#160; 15 Jun 2013 22:10:01 -0000&#160; &#160; 1.8--- symtab.c&#160; &#160; 16 Jun 2013 17:51:57 -0000&#160; &#160; 1.9****************** 21,24 ****--- 21,28 ----$Header$$Log$+ Revision 1.9&#160; 2013/06/16 17:51:57&#160; pauloscustodio+ get_all_syms() to get list of symbols matching a type mask, use in mapfile to decouple+ it from get_global_tab()+Revision 1.8&#160; 2013/06/15 22:10:01&#160; pauloscustodioBUG_0037 : Symbol already defined error when symbol used in IF expression****************** 238,241 ****--- 242,281 ----/*-----------------------------------------------------------------------------+ *&#160; &#160;copy all SYMADDR symbols to target, replacing NAME by NAME@...+ *----------------------------------------------------------------------------*/+ static void copy_full_sym_names( SymbolHash *target, SymbolHash *source, byte_t type_mask )+ {+ &#160; &#160; SymbolHashElem *iter;+ &#160; &#160; Symbol&#160; &#160; &#160; &#160; &#160;*sym;++ &#160; &#160; for ( iter = SymbolHash_first( source ); iter; iter = SymbolHash_next( iter ) )+ &#160; &#160; {+ &#160; &#160; &#160; &#160; sym = (Symbol *)iter-&#62;value;++ &#160; &#160; &#160; &#160; if ( sym-&#62;type &#38; type_mask )+ &#160; &#160; &#160; &#160; &#160; &#160; SymbolHash_set( target, Symbol_fullname(sym), Symbol_clone(sym) );+ &#160; &#160; }+ }++ /*-----------------------------------------------------------------------------+ *&#160; &#160;get the list of symbols that match the given type mask,+ *&#160; &#160;mapped NAME@... -&#62; Symbol, needs to be deleted by OBJ_DELETE()+ *----------------------------------------------------------------------------*/+ SymbolHash *get_all_syms( byte_t type_mask )+ {+ &#160; &#160; SymbolHash *all_syms = OBJ_NEW(SymbolHash);+&#160; &#160; &#160;struct module *cmodule;++ &#160; &#160; for ( cmodule = modulehdr-&#62;first; cmodule != NULL; cmodule = cmodule-&#62;nextmodule )+&#160; &#160; &#160;{+ &#160; &#160;&#160; &#160; &#160;copy_full_sym_names( all_syms, cmodule-&#62;local_tab, type_mask );+&#160; &#160; &#160;}++&#160; &#160; &#160;copy_full_sym_names( all_syms, get_global_tab(), type_mask );++ &#160; &#160; return all_syms;+ }++ /*-----------------------------------------------------------------------------*&#160; &#160;copy the static symbols to CURRENTMODULE-&#62;local_tab*----------------------------------------------------------------------------*/Index: symtab.h===================================================================RCS file: /cvsroot/z88dk/z88dk/src/z80asm/symtab.h,vretrieving revision 1.6retrieving revision 1.7diff -C2 -d -r1.6 -r1.7*** symtab.h&#160; &#160; 14 Jun 2013 22:14:36 -0000&#160; &#160; 1.6--- symtab.h&#160; &#160; 16 Jun 2013 17:51:57 -0000&#160; &#160; 1.7****************** 21,24 ****--- 21,28 ----$Header$$Log$+ Revision 1.7&#160; 2013/06/16 17:51:57&#160; pauloscustodio+ get_all_syms() to get list of symbols matching a type mask, use in mapfile to decouple+ it from get_global_tab()+Revision 1.6&#160; 2013/06/14 22:14:36&#160; pauloscustodiofind_local_symbol() and find_global_symbol() to encapsulate usage of get_global_tab()****************** 93,96 ****--- 97,104 ----extern Symbol *define_library_sym( char *name, long value, byte_t type );+ /* get the list of symbols that match the given type mask,+&#160; &#160; mapped NAME@... -&#62; Symbol, needs to be deleted by OBJ_DELETE() */+ extern SymbolHash *get_all_syms( byte_t type_mask );+/* copy the static symbols to CURRENTMODULE-&#62;local_tab */extern void copy_static_syms( void );------------------------------------------------------------------------------This SF.net email is sponsored by Windows:Build for Windows Store.http://p.sf.net/sfu/windows-dev2dev
</description>
<pubDate>Sun, 16 Jun 2013 18:51:59 +0100</pubDate>
</item>
<item>
<title>[Z88dk-commits] CVS: z88dk/src/z80asm mapfile.c, 1.1, 1.2 sym.c, 1.4, in Mailing Lists : z88dk-commits</title>
<link>http://www.z88dk.org/forum/viewtopic.php?pid=8617#8617</link>
<guid isPermaLink="false">8617@http://www.z88dk.org/forum</guid>
<description>Topic: [Z88dk-commits] CVS: z88dk/src/z80asm mapfile.c, 1.1, 1.2 sym.c, 1.4,

Message: Update of /cvsroot/z88dk/z88dk/src/z80asmIn directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv21122Modified Files:mapfile.c sym.c sym.hLog Message:Symbol_fullname() to return full symbol name NAME@...Index: mapfile.c===================================================================RCS file: /cvsroot/z88dk/z88dk/src/z80asm/mapfile.c,vretrieving revision 1.1retrieving revision 1.2diff -C2 -d -r1.1 -r1.2*** mapfile.c&#160; &#160; 15 Jun 2013 00:26:23 -0000&#160; &#160; 1.1--- mapfile.c&#160; &#160; 16 Jun 2013 16:49:20 -0000&#160; &#160; 1.2****************** 17,20 ****--- 17,23 ----$Header$$Log$+ Revision 1.2&#160; 2013/06/16 16:49:20&#160; pauloscustodio+ Symbol_fullname() to return full symbol name NAME@...+Revision 1.1&#160; 2013/06/15 00:26:23&#160; pauloscustodioMove mapfile writing to mapfile.c.****************** 74,94 ****/*------------------------------------------------------------------------------ *&#160; &#160;return NAME@... in strpool- *----------------------------------------------------------------------------*/- static char *full_sym_name( Symbol *sym )- {- &#160; &#160; SSTR_DEFINE(name, MAXLINE);-- &#160; &#160; sstr_set(name, sym-&#62;name);- &#160; &#160; if ( sym-&#62;owner &#38;&#38; sym-&#62;owner-&#62;mname )- &#160; &#160; {- &#160; &#160; &#160; &#160; sstr_cat(name, &#34;@&#34;);- &#160; &#160; &#160; &#160; sstr_cat(name, sym-&#62;owner-&#62;mname);- &#160; &#160; }-- &#160; &#160; return strpool_add(sstr_data(name));- }-- /*-----------------------------------------------------------------------------*&#160; &#160;copy all SYMADDR symbols to target, replacing NAME by NAME@...*----------------------------------------------------------------------------*/--- 77,80 ----****************** 103,107 ****if ( sym-&#62;type &#38; SYMADDR )! &#160; &#160; &#160; &#160; &#160; &#160; SymbolHash_set( target, full_sym_name(sym), Symbol_clone(sym) );}}--- 89,93 ----if ( sym-&#62;type &#38; SYMADDR )! &#160; &#160; &#160; &#160; &#160; &#160; SymbolHash_set( target, Symbol_fullname(sym), Symbol_clone(sym) );}}Index: sym.c===================================================================RCS file: /cvsroot/z88dk/z88dk/src/z80asm/sym.c,vretrieving revision 1.4retrieving revision 1.5diff -C2 -d -r1.4 -r1.5*** sym.c&#160; &#160; 8 Jun 2013 23:08:38 -0000&#160; &#160; 1.4--- sym.c&#160; &#160; 16 Jun 2013 16:49:20 -0000&#160; &#160; 1.5****************** 18,21 ****--- 18,24 ----$Header$$Log$+ Revision 1.5&#160; 2013/06/16 16:49:20&#160; pauloscustodio+ Symbol_fullname() to return full symbol name NAME@...+Revision 1.4&#160; 2013/06/08 23:08:38&#160; pauloscustodiocomments****************** 37,40 ****--- 40,44 ----#include &#34;listfile.h&#34;#include &#34;options.h&#34;+ #include &#34;safestr.h&#34;#include &#34;strpool.h&#34;#include &#34;sym.h&#34;****************** 84,87 ****--- 88,108 ----}+ /*-----------------------------------------------------------------------------+ *&#160; &#160;return full symbol name NAME@... stored in strpool+ *----------------------------------------------------------------------------*/+ char *Symbol_fullname( Symbol *sym )+ {+ &#160; &#160; SSTR_DEFINE(name, MAXLINE);++ &#160; &#160; sstr_set(name, sym-&#62;name);+ &#160; &#160; if ( sym-&#62;owner &#38;&#38; sym-&#62;owner-&#62;mname )+ &#160; &#160; {+ &#160; &#160; &#160; &#160; sstr_cat(name, &#34;@&#34;);+ &#160; &#160; &#160; &#160; sstr_cat(name, sym-&#62;owner-&#62;mname);+ &#160; &#160; }++ &#160; &#160; return strpool_add(sstr_data(name));+ }+Index: sym.h===================================================================RCS file: /cvsroot/z88dk/z88dk/src/z80asm/sym.h,vretrieving revision 1.5retrieving revision 1.6diff -C2 -d -r1.5 -r1.6*** sym.h&#160; &#160; 8 Jun 2013 23:37:32 -0000&#160; &#160; 1.5--- sym.h&#160; &#160; 16 Jun 2013 16:49:20 -0000&#160; &#160; 1.6****************** 18,21 ****--- 18,24 ----$Header$$Log$+ Revision 1.6&#160; 2013/06/16 16:49:20&#160; pauloscustodio+ Symbol_fullname() to return full symbol name NAME@...+Revision 1.5&#160; 2013/06/08 23:37:32&#160; pauloscustodioReplace define_def_symbol() by one function for each symbol table type: define_static_def_sym(),****************** 95,98 ****--- 98,104 ----extern Symbol *Symbol_create( char *name, long value, byte_t type, struct module *owner );+ /* return full symbol name NAME@... stored in strpool */+ extern char *Symbol_fullname( Symbol *sym );+#endif /* ndef SYM_H */------------------------------------------------------------------------------This SF.net email is sponsored by Windows:Build for Windows Store.http://p.sf.net/sfu/windows-dev2dev
</description>
<pubDate>Sun, 16 Jun 2013 17:49:22 +0100</pubDate>
</item>
<item>
<title>[Z88dk-commits] CVS: z88dk/src/z80asm/t whitebox-symtab.t,1.5,1.6 in Mailing Lists : z88dk-commits</title>
<link>http://www.z88dk.org/forum/viewtopic.php?pid=8616#8616</link>
<guid isPermaLink="false">8616@http://www.z88dk.org/forum</guid>
<description>Topic: [Z88dk-commits] CVS: z88dk/src/z80asm/t whitebox-symtab.t,1.5,1.6

Message: Update of /cvsroot/z88dk/z88dk/src/z80asm/tIn directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv21122/tModified Files:whitebox-symtab.tLog Message:Symbol_fullname() to return full symbol name NAME@...Index: whitebox-symtab.t===================================================================RCS file: /cvsroot/z88dk/z88dk/src/z80asm/t/whitebox-symtab.t,vretrieving revision 1.5retrieving revision 1.6diff -C2 -d -r1.5 -r1.6*** whitebox-symtab.t&#160; &#160; 11 Jun 2013 23:16:06 -0000&#160; &#160; 1.5--- whitebox-symtab.t&#160; &#160; 16 Jun 2013 16:49:20 -0000&#160; &#160; 1.6****************** 16,19 ****--- 16,22 ----# $Header$# $Log$+ # Revision 1.6&#160; 2013/06/16 16:49:20&#160; pauloscustodio+ # Symbol_fullname() to return full symbol name NAME@...+ ## Revision 1.5&#160; 2013/06/11 23:16:06&#160; pauloscustodio# Move symbol creation logic fromReadNames() in&#160; modlink.c to symtab.c.****************** 77,81 ****void dump_Symbol ( Symbol *sym ){! &#160; &#160; warn(&#34;Symbol \&#34;%s\&#34; = %ld, type = 0x%02X [&#34;, sym-&#62;name, sym-&#62;value, sym-&#62;type );if (sym-&#62;type &#38; SYMDEFINED)&#160; &#160; warn(&#34;DEFINED &#34;);if (sym-&#62;type &#38; SYMTOUCHED)&#160; &#160; warn(&#34;TOUCHED &#34;);--- 80,85 ----void dump_Symbol ( Symbol *sym ){! &#160; &#160; warn(&#34;Symbol %s (%s) = %ld, type = 0x%02X [&#34;,! &#160; &#160; &#160; &#160;&#160; sym-&#62;name, Symbol_fullname(sym), sym-&#62;value, sym-&#62;type );if (sym-&#62;type &#38; SYMDEFINED)&#160; &#160; warn(&#34;DEFINED &#34;);if (sym-&#62;type &#38; SYMTOUCHED)&#160; &#160; warn(&#34;TOUCHED &#34;);****************** 138,144 ****TITLE(&#34;Create symbol&#34;);! &#160; &#160; sym = Symbol_create(S(&#34;VAR1&#34;), 123, 0, CURRENTMODULE);dump_Symbol(sym);TITLE(&#34;Delete symbol&#34;);OBJ_DELETE(sym);--- 142,154 ----TITLE(&#34;Create symbol&#34;);! &#160; &#160; sym = Symbol_create(S(&#34;VAR1&#34;), 123, 0, NULL);dump_Symbol(sym);+ &#160; &#160; OBJ_DELETE(sym);+ &#160; &#160; sym = Symbol_create(S(&#34;VAR1&#34;), 123, 0, CURRENTMODULE);+ &#160; &#160; dump_Symbol(sym);+ &#160; &#160; CURRENTMODULE-&#62;mname = &#34;MODULE&#34;;+ &#160; &#160; dump_Symbol(sym);+TITLE(&#34;Delete symbol&#34;);OBJ_DELETE(sym);****************** 239,598 ****memalloc symref.c(1): alloc 32 bytes at ADDR_10memalloc symref.c(2): alloc 12 bytes at ADDR_11! Symbol &#34;VAR1&#34; = 123, type = 0x00 [], ref = [1 ], owner = CURRENTMODULE!! ---- TEST: Delete symbol ----!memalloc symref.c(1): free 32 bytes at ADDR_10 allocated at symref.c(1)memalloc symref.c(2): free 12 bytes at ADDR_11 allocated at symref.c(2)memalloc symref.c(2): free 40 bytes at ADDR_5 allocated at symref.c(2)memalloc sym.c(1): free 48 bytes at ADDR_4 allocated at sym.c(1)---- TEST: Global symtab ----! memalloc symtab.c(1): alloc 32 bytes at ADDR_12! memalloc strhash.c(1): alloc 32 bytes at ADDR_13Symtab &#34;global&#34;: EMPTY! memalloc symtab.c(1): alloc 32 bytes at ADDR_14! memalloc strhash.c(1): alloc 32 bytes at ADDR_15Symtab &#34;static&#34;: EMPTY---- TEST: Concat symbol tables ----! memalloc symtab.c(1): alloc 32 bytes at ADDR_16! memalloc strhash.c(1): alloc 32 bytes at ADDR_17! memalloc sym.c(1): alloc 48 bytes at ADDR_18! memalloc symref.c(2): alloc 40 bytes at ADDR_19! memalloc symref.c(1): alloc 32 bytes at ADDR_20! memalloc symref.c(2): alloc 12 bytes at ADDR_21! memalloc strhash.c(4): alloc 40 bytes at ADDR_22! memalloc strhash.c(5): alloc 44 bytes at ADDR_23! memalloc strhash.c(5): alloc 384 bytes at ADDR_24! memalloc symref.c(2): free 12 bytes at ADDR_21 allocated at symref.c(2)! memalloc symref.c(2): alloc 12 bytes at ADDR_25! memalloc sym.c(1): alloc 48 bytes at ADDR_26! memalloc symref.c(2): alloc 40 bytes at ADDR_27! memalloc strpool.c(2): alloc 36 bytes at ADDR_28! memalloc strpool.c(3): alloc 5 bytes at ADDR_29! memalloc symref.c(1): alloc 32 bytes at ADDR_30memalloc symref.c(2): alloc 12 bytes at ADDR_31! memalloc strhash.c(4): alloc 40 bytes at ADDR_32! memalloc symref.c(2): free 12 bytes at ADDR_31 allocated at symref.c(2)! memalloc symref.c(2): alloc 12 bytes at ADDR_33! memalloc sym.c(1): alloc 48 bytes at ADDR_34! memalloc symref.c(2): alloc 40 bytes at ADDR_35! memalloc strpool.c(2): alloc 36 bytes at ADDR_36! memalloc strpool.c(3): alloc 5 bytes at ADDR_37! memalloc symref.c(1): alloc 32 bytes at ADDR_38memalloc symref.c(2): alloc 12 bytes at ADDR_39! memalloc strhash.c(4): alloc 40 bytes at ADDR_40! memalloc symref.c(2): free 12 bytes at ADDR_39 allocated at symref.c(2)! memalloc symref.c(2): alloc 12 bytes at ADDR_41! Symtab &#34;tab1&#34;:!&#160; &#160;Symbol &#34;VAR1&#34; = 1, type = 0x01 [DEFINED ], ref = [1 ], owner = NULL!&#160; &#160;Symbol &#34;VAR2&#34; = 2, type = 0x01 [DEFINED ], ref = [2 ], owner = NULL!&#160; &#160;Symbol &#34;VAR3&#34; = -3, type = 0x01 [DEFINED ], ref = [3 ], owner = NULL! memalloc symtab.c(1): alloc 32 bytes at ADDR_42! memalloc strhash.c(1): alloc 32 bytes at ADDR_43! memalloc sym.c(1): alloc 48 bytes at ADDR_44! memalloc symref.c(2): alloc 40 bytes at ADDR_45! memalloc symref.c(1): alloc 32 bytes at ADDR_46memalloc symref.c(2): alloc 12 bytes at ADDR_47! memalloc strhash.c(4): alloc 40 bytes at ADDR_48! memalloc strhash.c(5): alloc 44 bytes at ADDR_49! memalloc strhash.c(5): alloc 384 bytes at ADDR_50! memalloc symref.c(2): free 12 bytes at ADDR_47 allocated at symref.c(2)! memalloc symref.c(2): alloc 12 bytes at ADDR_51! memalloc sym.c(1): alloc 48 bytes at ADDR_52! memalloc symref.c(2): alloc 40 bytes at ADDR_53! memalloc strpool.c(2): alloc 36 bytes at ADDR_54! memalloc strpool.c(3): alloc 5 bytes at ADDR_55! memalloc symref.c(1): alloc 32 bytes at ADDR_56memalloc symref.c(2): alloc 12 bytes at ADDR_57! memalloc strhash.c(4): alloc 40 bytes at ADDR_58! memalloc symref.c(2): free 12 bytes at ADDR_57 allocated at symref.c(2)! memalloc symref.c(2): alloc 12 bytes at ADDR_59! memalloc sym.c(1): alloc 48 bytes at ADDR_60! memalloc symref.c(2): alloc 40 bytes at ADDR_61! memalloc strpool.c(2): alloc 36 bytes at ADDR_62! memalloc strpool.c(3): alloc 5 bytes at ADDR_63! memalloc symref.c(1): alloc 32 bytes at ADDR_64memalloc symref.c(2): alloc 12 bytes at ADDR_65! memalloc strhash.c(4): alloc 40 bytes at ADDR_66! memalloc symref.c(2): free 12 bytes at ADDR_65 allocated at symref.c(2)! memalloc symref.c(2): alloc 12 bytes at ADDR_67! Symtab &#34;tab2&#34;:!&#160; &#160;Symbol &#34;VAR3&#34; = 3, type = 0x01 [DEFINED ], ref = [4 ], owner = NULL!&#160; &#160;Symbol &#34;VAR4&#34; = 4, type = 0x01 [DEFINED ], ref = [5 ], owner = NULL!&#160; &#160;Symbol &#34;VAR5&#34; = 5, type = 0x01 [DEFINED ], ref = [6 ], owner = NULL! memalloc sym.c(1): alloc 48 bytes at ADDR_68! memalloc symref.c(2): alloc 40 bytes at ADDR_69memalloc symref.c(1): alloc 32 bytes at ADDR_70memalloc symref.c(2): alloc 12 bytes at ADDR_71! memalloc symref.c(1): free 32 bytes at ADDR_38 allocated at symref.c(1)! memalloc symref.c(2): free 12 bytes at ADDR_41 allocated at symref.c(2)! memalloc symref.c(2): free 40 bytes at ADDR_35 allocated at symref.c(2)! memalloc sym.c(1): free 48 bytes at ADDR_34 allocated at sym.c(1)! memalloc sym.c(1): alloc 48 bytes at ADDR_72! memalloc symref.c(2): alloc 40 bytes at ADDR_73! memalloc symref.c(1): alloc 32 bytes at ADDR_74! memalloc symref.c(2): alloc 12 bytes at ADDR_75! memalloc strhash.c(4): alloc 40 bytes at ADDR_76! memalloc sym.c(1): alloc 48 bytes at ADDR_77! memalloc symref.c(2): alloc 40 bytes at ADDR_78! memalloc symref.c(1): alloc 32 bytes at ADDR_79! memalloc symref.c(2): alloc 12 bytes at ADDR_80! memalloc strhash.c(4): alloc 40 bytes at ADDR_81Symtab &#34;merged_tab&#34;:!&#160; &#160;Symbol &#34;VAR1&#34; = 1, type = 0x01 [DEFINED ], ref = [1 ], owner = NULL!&#160; &#160;Symbol &#34;VAR2&#34; = 2, type = 0x01 [DEFINED ], ref = [2 ], owner = NULL!&#160; &#160;Symbol &#34;VAR3&#34; = 3, type = 0x01 [DEFINED ], ref = [4 ], owner = NULL!&#160; &#160;Symbol &#34;VAR4&#34; = 4, type = 0x01 [DEFINED ], ref = [5 ], owner = NULL!&#160; &#160;Symbol &#34;VAR5&#34; = 5, type = 0x01 [DEFINED ], ref = [6 ], owner = NULL! memalloc symref.c(1): free 32 bytes at ADDR_20 allocated at symref.c(1)! memalloc symref.c(2): free 12 bytes at ADDR_25 allocated at symref.c(2)! memalloc symref.c(2): free 40 bytes at ADDR_19 allocated at symref.c(2)! memalloc sym.c(1): free 48 bytes at ADDR_18 allocated at sym.c(1)! memalloc strhash.c(3): free 40 bytes at ADDR_22 allocated at strhash.c(4)! memalloc symref.c(1): free 32 bytes at ADDR_30 allocated at symref.c(1)! memalloc symref.c(2): free 12 bytes at ADDR_33 allocated at symref.c(2)! memalloc symref.c(2): free 40 bytes at ADDR_27 allocated at symref.c(2)! memalloc sym.c(1): free 48 bytes at ADDR_26 allocated at sym.c(1)! memalloc strhash.c(3): free 40 bytes at ADDR_32 allocated at strhash.c(4)memalloc symref.c(1): free 32 bytes at ADDR_70 allocated at symref.c(1)! memalloc symref.c(2): free 12 bytes at ADDR_71 allocated at symref.c(2)! memalloc symref.c(2): free 40 bytes at ADDR_69 allocated at symref.c(2)! memalloc sym.c(1): free 48 bytes at ADDR_68 allocated at sym.c(1)! memalloc strhash.c(3): free 40 bytes at ADDR_40 allocated at strhash.c(4)! memalloc symref.c(1): free 32 bytes at ADDR_74 allocated at symref.c(1)! memalloc symref.c(2): free 12 bytes at ADDR_75 allocated at symref.c(2)! memalloc symref.c(2): free 40 bytes at ADDR_73 allocated at symref.c(2)! memalloc sym.c(1): free 48 bytes at ADDR_72 allocated at sym.c(1)! memalloc strhash.c(3): free 40 bytes at ADDR_76 allocated at strhash.c(4)! memalloc symref.c(1): free 32 bytes at ADDR_79 allocated at symref.c(1)! memalloc symref.c(2): free 12 bytes at ADDR_80 allocated at symref.c(2)! memalloc symref.c(2): free 40 bytes at ADDR_78 allocated at symref.c(2)! memalloc sym.c(1): free 48 bytes at ADDR_77 allocated at sym.c(1)! memalloc strhash.c(2): free 384 bytes at ADDR_24 allocated at strhash.c(5)! memalloc strhash.c(2): free 44 bytes at ADDR_23 allocated at strhash.c(5)! memalloc strhash.c(3): free 40 bytes at ADDR_81 allocated at strhash.c(4)! memalloc symtab.c(1): free 32 bytes at ADDR_16 allocated at symtab.c(1)! memalloc symref.c(1): free 32 bytes at ADDR_46 allocated at symref.c(1)! memalloc symref.c(2): free 12 bytes at ADDR_51 allocated at symref.c(2)! memalloc symref.c(2): free 40 bytes at ADDR_45 allocated at symref.c(2)! memalloc sym.c(1): free 48 bytes at ADDR_44 allocated at sym.c(1)! memalloc strhash.c(3): free 40 bytes at ADDR_48 allocated at strhash.c(4)! memalloc symref.c(1): free 32 bytes at ADDR_56 allocated at symref.c(1)! memalloc symref.c(2): free 12 bytes at ADDR_59 allocated at symref.c(2)! memalloc symref.c(2): free 40 bytes at ADDR_53 allocated at symref.c(2)! memalloc sym.c(1): free 48 bytes at ADDR_52 allocated at sym.c(1)! memalloc strhash.c(3): free 40 bytes at ADDR_58 allocated at strhash.c(4)! memalloc symref.c(1): free 32 bytes at ADDR_64 allocated at symref.c(1)! memalloc symref.c(2): free 12 bytes at ADDR_67 allocated at symref.c(2)! memalloc symref.c(2): free 40 bytes at ADDR_61 allocated at symref.c(2)! memalloc sym.c(1): free 48 bytes at ADDR_60 allocated at sym.c(1)! memalloc strhash.c(2): free 384 bytes at ADDR_50 allocated at strhash.c(5)! memalloc strhash.c(2): free 44 bytes at ADDR_49 allocated at strhash.c(5)! memalloc strhash.c(3): free 40 bytes at ADDR_66 allocated at strhash.c(4)! memalloc symtab.c(1): free 32 bytes at ADDR_42 allocated at symtab.c(1)---- TEST: Sort ----! memalloc symtab.c(1): alloc 32 bytes at ADDR_82! memalloc strhash.c(1): alloc 32 bytes at ADDR_83! memalloc sym.c(1): alloc 48 bytes at ADDR_84! memalloc symref.c(2): alloc 40 bytes at ADDR_85! memalloc strpool.c(2): alloc 36 bytes at ADDR_86! memalloc strpool.c(3): alloc 4 bytes at ADDR_87! memalloc symref.c(1): alloc 32 bytes at ADDR_88! memalloc symref.c(2): alloc 12 bytes at ADDR_89! memalloc strhash.c(4): alloc 40 bytes at ADDR_90! memalloc strhash.c(5): alloc 44 bytes at ADDR_91! memalloc strhash.c(5): alloc 384 bytes at ADDR_92! memalloc symref.c(2): free 12 bytes at ADDR_89 allocated at symref.c(2)! memalloc symref.c(2): alloc 12 bytes at ADDR_93! memalloc sym.c(1): alloc 48 bytes at ADDR_94! memalloc symref.c(2): alloc 40 bytes at ADDR_95! memalloc strpool.c(2): alloc 36 bytes at ADDR_96! memalloc strpool.c(3): alloc 4 bytes at ADDR_97! memalloc symref.c(1): alloc 32 bytes at ADDR_98memalloc symref.c(2): alloc 12 bytes at ADDR_99! memalloc strhash.c(4): alloc 40 bytes at ADDR_100! memalloc symref.c(2): free 12 bytes at ADDR_99 allocated at symref.c(2)! memalloc symref.c(2): alloc 12 bytes at ADDR_101! memalloc sym.c(1): alloc 48 bytes at ADDR_102! memalloc symref.c(2): alloc 40 bytes at ADDR_103! memalloc strpool.c(2): alloc 36 bytes at ADDR_104! memalloc strpool.c(3): alloc 6 bytes at ADDR_105! memalloc symref.c(1): alloc 32 bytes at ADDR_106memalloc symref.c(2): alloc 12 bytes at ADDR_107! memalloc strhash.c(4): alloc 40 bytes at ADDR_108! memalloc symref.c(2): free 12 bytes at ADDR_107 allocated at symref.c(2)! memalloc symref.c(2): alloc 12 bytes at ADDR_109! memalloc sym.c(1): alloc 48 bytes at ADDR_110! memalloc symref.c(2): alloc 40 bytes at ADDR_111! memalloc strpool.c(2): alloc 36 bytes at ADDR_112! memalloc strpool.c(3): alloc 5 bytes at ADDR_113! memalloc symref.c(1): alloc 32 bytes at ADDR_114memalloc symref.c(2): alloc 12 bytes at ADDR_115! memalloc strhash.c(4): alloc 40 bytes at ADDR_116! memalloc symref.c(2): free 12 bytes at ADDR_115 allocated at symref.c(2)! memalloc symref.c(2): alloc 12 bytes at ADDR_117Symtab &#34;tab&#34;:!&#160; &#160;Symbol &#34;ONE&#34; = 1, type = 0x01 [DEFINED ], ref = [7 ], owner = NULL!&#160; &#160;Symbol &#34;TWO&#34; = 2, type = 0x01 [DEFINED ], ref = [8 ], owner = NULL!&#160; &#160;Symbol &#34;THREE&#34; = 3, type = 0x01 [DEFINED ], ref = [9 ], owner = NULL!&#160; &#160;Symbol &#34;FOUR&#34; = 4, type = 0x01 [DEFINED ], ref = [10 ], owner = NULLSymtab &#34;tab by name&#34;:!&#160; &#160;Symbol &#34;FOUR&#34; = 4, type = 0x01 [DEFINED ], ref = [10 ], owner = NULL!&#160; &#160;Symbol &#34;ONE&#34; = 1, type = 0x01 [DEFINED ], ref = [7 ], owner = NULL!&#160; &#160;Symbol &#34;THREE&#34; = 3, type = 0x01 [DEFINED ], ref = [9 ], owner = NULL!&#160; &#160;Symbol &#34;TWO&#34; = 2, type = 0x01 [DEFINED ], ref = [8 ], owner = NULLSymtab &#34;tab by value&#34;:!&#160; &#160;Symbol &#34;ONE&#34; = 1, type = 0x01 [DEFINED ], ref = [7 ], owner = NULL!&#160; &#160;Symbol &#34;TWO&#34; = 2, type = 0x01 [DEFINED ], ref = [8 ], owner = NULL!&#160; &#160;Symbol &#34;THREE&#34; = 3, type = 0x01 [DEFINED ], ref = [9 ], owner = NULL!&#160; &#160;Symbol &#34;FOUR&#34; = 4, type = 0x01 [DEFINED ], ref = [10 ], owner = NULL! memalloc symref.c(1): free 32 bytes at ADDR_88 allocated at symref.c(1)! memalloc symref.c(2): free 12 bytes at ADDR_93 allocated at symref.c(2)! memalloc symref.c(2): free 40 bytes at ADDR_85 allocated at symref.c(2)! memalloc sym.c(1): free 48 bytes at ADDR_84 allocated at sym.c(1)! memalloc strhash.c(3): free 40 bytes at ADDR_90 allocated at strhash.c(4)! memalloc symref.c(1): free 32 bytes at ADDR_98 allocated at symref.c(1)! memalloc symref.c(2): free 12 bytes at ADDR_101 allocated at symref.c(2)! memalloc symref.c(2): free 40 bytes at ADDR_95 allocated at symref.c(2)! memalloc sym.c(1): free 48 bytes at ADDR_94 allocated at sym.c(1)! memalloc strhash.c(3): free 40 bytes at ADDR_100 allocated at strhash.c(4)! memalloc symref.c(1): free 32 bytes at ADDR_106 allocated at symref.c(1)! memalloc symref.c(2): free 12 bytes at ADDR_109 allocated at symref.c(2)! memalloc symref.c(2): free 40 bytes at ADDR_103 allocated at symref.c(2)! memalloc sym.c(1): free 48 bytes at ADDR_102 allocated at sym.c(1)! memalloc strhash.c(3): free 40 bytes at ADDR_108 allocated at strhash.c(4)! memalloc symref.c(1): free 32 bytes at ADDR_114 allocated at symref.c(1)! memalloc symref.c(2): free 12 bytes at ADDR_117 allocated at symref.c(2)! memalloc symref.c(2): free 40 bytes at ADDR_111 allocated at symref.c(2)! memalloc sym.c(1): free 48 bytes at ADDR_110 allocated at sym.c(1)! memalloc strhash.c(2): free 384 bytes at ADDR_92 allocated at strhash.c(5)! memalloc strhash.c(2): free 44 bytes at ADDR_91 allocated at strhash.c(5)! memalloc strhash.c(3): free 40 bytes at ADDR_116 allocated at strhash.c(4)! memalloc symtab.c(1): free 32 bytes at ADDR_82 allocated at symtab.c(1)---- TEST: Use local symbol before definition ----! memalloc sym.c(1): alloc 48 bytes at ADDR_118! memalloc symref.c(2): alloc 40 bytes at ADDR_119! memalloc strpool.c(2): alloc 36 bytes at ADDR_120! memalloc strpool.c(3): alloc 6 bytes at ADDR_121! memalloc symref.c(1): alloc 32 bytes at ADDR_122! memalloc symref.c(2): alloc 12 bytes at ADDR_123! memalloc strhash.c(4): alloc 40 bytes at ADDR_124! memalloc strhash.c(5): alloc 44 bytes at ADDR_125! memalloc strhash.c(5): alloc 384 bytes at ADDR_126! memalloc symref.c(2): free 12 bytes at ADDR_123 allocated at symref.c(2)! memalloc symref.c(2): alloc 12 bytes at ADDR_127! memalloc sym.c(1): alloc 48 bytes at ADDR_128! memalloc symref.c(2): alloc 40 bytes at ADDR_129! memalloc symref.c(1): alloc 32 bytes at ADDR_130! memalloc symref.c(2): alloc 12 bytes at ADDR_131! memalloc strhash.c(4): alloc 40 bytes at ADDR_132! memalloc strhash.c(5): alloc 44 bytes at ADDR_133! memalloc strhash.c(5): alloc 384 bytes at ADDR_134! memalloc sym.c(1): alloc 48 bytes at ADDR_135! memalloc symref.c(2): alloc 40 bytes at ADDR_136! memalloc strpool.c(2): alloc 36 bytes at ADDR_137! memalloc strpool.c(3): alloc 6 bytes at ADDR_138! memalloc symref.c(1): alloc 32 bytes at ADDR_139! memalloc symref.c(2): alloc 12 bytes at ADDR_140! memalloc strhash.c(4): alloc 40 bytes at ADDR_141! memalloc strhash.c(5): alloc 44 bytes at ADDR_142! memalloc strhash.c(5): alloc 384 bytes at ADDR_143! memalloc symref.c(2): free 12 bytes at ADDR_140 allocated at symref.c(2)! memalloc symref.c(2): alloc 12 bytes at ADDR_144! memalloc sym.c(1): alloc 48 bytes at ADDR_145! memalloc symref.c(2): alloc 40 bytes at ADDR_146! memalloc strpool.c(2): alloc 36 bytes at ADDR_147! memalloc strpool.c(3): alloc 3 bytes at ADDR_148! memalloc symref.c(1): alloc 32 bytes at ADDR_149memalloc symref.c(2): alloc 12 bytes at ADDR_150! memalloc strhash.c(4): alloc 40 bytes at ADDR_151! memalloc symref.c(1): alloc 32 bytes at ADDR_152! memalloc symref.c(2): alloc 12 bytes at ADDR_153! memalloc symref.c(1): alloc 32 bytes at ADDR_154! memalloc symref.c(2): alloc 12 bytes at ADDR_155! Symbol &#34;NN&#34; = 12, type = 0x1B [DEFINED TOUCHED ADDR LOCAL ], ref = [10 6 8 ], owner = CURRENTMODULESymtab &#34;global tab&#34;:!&#160; &#160;Symbol &#34;ASMPC&#34; = 12, type = 0x03 [DEFINED TOUCHED ], ref = [3 ], owner = NULLSymtab &#34;static tab&#34;:!&#160; &#160;Symbol &#34;WIN32&#34; = 1, type = 0x01 [DEFINED ], ref = [1 ], owner = NULLSymtab &#34;local tab&#34;:!&#160; &#160;Symbol &#34;WIN32&#34; = 1, type = 0x01 [DEFINED ], ref = [1 ], owner = NULL!&#160; &#160;Symbol &#34;NN&#34; = 12, type = 0x1B [DEFINED TOUCHED ADDR LOCAL ], ref = [10 6 8 ], owner = CURRENTMODULE---- TEST: End ----! memalloc strhash.c(1): free 32 bytes at ADDR_83 allocated at strhash.c(1)! memalloc strhash.c(1): free 32 bytes at ADDR_43 allocated at strhash.c(1)! memalloc strhash.c(1): free 32 bytes at ADDR_17 allocated at strhash.c(1)! memalloc symref.c(1): free 32 bytes at ADDR_122 allocated at symref.c(1)! memalloc symref.c(2): free 12 bytes at ADDR_127 allocated at symref.c(2)! memalloc symref.c(2): free 40 bytes at ADDR_119 allocated at symref.c(2)! memalloc sym.c(1): free 48 bytes at ADDR_118 allocated at sym.c(1)! memalloc strhash.c(2): free 384 bytes at ADDR_126 allocated at strhash.c(5)! memalloc strhash.c(2): free 44 bytes at ADDR_125 allocated at strhash.c(5)! memalloc strhash.c(3): free 40 bytes at ADDR_124 allocated at strhash.c(4)! memalloc symtab.c(1): free 32 bytes at ADDR_14 allocated at symtab.c(1)! memalloc strhash.c(1): free 32 bytes at ADDR_15 allocated at strhash.c(1)! memalloc symref.c(1): free 32 bytes at ADDR_139 allocated at symref.c(1)! memalloc symref.c(2): free 12 bytes at ADDR_144 allocated at symref.c(2)! memalloc symref.c(2): free 40 bytes at ADDR_136 allocated at symref.c(2)! memalloc sym.c(1): free 48 bytes at ADDR_135 allocated at sym.c(1)! memalloc strhash.c(2): free 384 bytes at ADDR_143 allocated at strhash.c(5)! memalloc strhash.c(2): free 44 bytes at ADDR_142 allocated at strhash.c(5)! memalloc strhash.c(3): free 40 bytes at ADDR_141 allocated at strhash.c(4)! memalloc symtab.c(1): free 32 bytes at ADDR_12 allocated at symtab.c(1)! memalloc strhash.c(1): free 32 bytes at ADDR_13 allocated at strhash.c(1)! memalloc symref.c(1): free 32 bytes at ADDR_130 allocated at symref.c(1)! memalloc symref.c(2): free 12 bytes at ADDR_131 allocated at symref.c(2)! memalloc symref.c(2): free 40 bytes at ADDR_129 allocated at symref.c(2)! memalloc sym.c(1): free 48 bytes at ADDR_128 allocated at sym.c(1)! memalloc strhash.c(3): free 40 bytes at ADDR_132 allocated at strhash.c(4)! memalloc symref.c(1): free 32 bytes at ADDR_154 allocated at symref.c(1)! memalloc symref.c(2): free 12 bytes at ADDR_155 allocated at symref.c(2)! memalloc symref.c(1): free 32 bytes at ADDR_149 allocated at symref.c(1)memalloc symref.c(2): free 12 bytes at ADDR_150 allocated at symref.c(2)! memalloc symref.c(1): free 32 bytes at ADDR_152 allocated at symref.c(1)! memalloc symref.c(2): free 12 bytes at ADDR_153 allocated at symref.c(2)! memalloc symref.c(2): free 40 bytes at ADDR_146 allocated at symref.c(2)! memalloc sym.c(1): free 48 bytes at ADDR_145 allocated at sym.c(1)! memalloc strhash.c(2): free 384 bytes at ADDR_134 allocated at strhash.c(5)! memalloc strhash.c(2): free 44 bytes at ADDR_133 allocated at strhash.c(5)! memalloc strhash.c(3): free 40 bytes at ADDR_151 allocated at strhash.c(4)memalloc symtab.c(1): free 32 bytes at ADDR_1 allocated at symtab.c(1)memalloc strhash.c(1): free 32 bytes at ADDR_2 allocated at strhash.c(1)memalloc strpool.c(6): free 5 bytes at ADDR_7 allocated at strpool.c(3)memalloc strpool.c(7): free 36 bytes at ADDR_6 allocated at strpool.c(2)! memalloc strpool.c(6): free 5 bytes at ADDR_29 allocated at strpool.c(3)! memalloc strpool.c(7): free 36 bytes at ADDR_28 allocated at strpool.c(2)! memalloc strpool.c(6): free 5 bytes at ADDR_37 allocated at strpool.c(3)! memalloc strpool.c(7): free 36 bytes at ADDR_36 allocated at strpool.c(2)! memalloc strpool.c(6): free 5 bytes at ADDR_55 allocated at strpool.c(3)! memalloc strpool.c(7): free 36 bytes at ADDR_54 allocated at strpool.c(2)! memalloc strpool.c(6): free 5 bytes at ADDR_63 allocated at strpool.c(3)! memalloc strpool.c(7): free 36 bytes at ADDR_62 allocated at strpool.c(2)! memalloc strpool.c(6): free 4 bytes at ADDR_87 allocated at strpool.c(3)! memalloc strpool.c(7): free 36 bytes at ADDR_86 allocated at strpool.c(2)! memalloc strpool.c(6): free 4 bytes at ADDR_97 allocated at strpool.c(3)! memalloc strpool.c(7): free 36 bytes at ADDR_96 allocated at strpool.c(2)! memalloc strpool.c(6): free 6 bytes at ADDR_105 allocated at strpool.c(3)! memalloc strpool.c(7): free 36 bytes at ADDR_104 allocated at strpool.c(2)! memalloc strpool.c(6): free 5 bytes at ADDR_113 allocated at strpool.c(3)! memalloc strpool.c(7): free 36 bytes at ADDR_112 allocated at strpool.c(2)! memalloc strpool.c(6): free 6 bytes at ADDR_121 allocated at strpool.c(3)! memalloc strpool.c(7): free 36 bytes at ADDR_120 allocated at strpool.c(2)! memalloc strpool.c(6): free 6 bytes at ADDR_138 allocated at strpool.c(3)! memalloc strpool.c(7): free 36 bytes at ADDR_137 allocated at strpool.c(2)memalloc strpool.c(5): free 384 bytes at ADDR_9 allocated at strpool.c(4)memalloc strpool.c(5): free 44 bytes at ADDR_8 allocated at strpool.c(4)! memalloc strpool.c(6): free 3 bytes at ADDR_148 allocated at strpool.c(3)! memalloc strpool.c(7): free 36 bytes at ADDR_147 allocated at strpool.c(2)memalloc strpool.c(1): free 32 bytes at ADDR_3 allocated at strpool.c(1)memalloc: cleanup--- 249,626 ----memalloc symref.c(1): alloc 32 bytes at ADDR_10memalloc symref.c(2): alloc 12 bytes at ADDR_11! Symbol VAR1 (VAR1) = 123, type = 0x00 [], ref = [1 ], owner = NULLmemalloc symref.c(1): free 32 bytes at ADDR_10 allocated at symref.c(1)memalloc symref.c(2): free 12 bytes at ADDR_11 allocated at symref.c(2)memalloc symref.c(2): free 40 bytes at ADDR_5 allocated at symref.c(2)memalloc sym.c(1): free 48 bytes at ADDR_4 allocated at sym.c(1)+ memalloc sym.c(1): alloc 48 bytes at ADDR_12+ memalloc symref.c(2): alloc 40 bytes at ADDR_13+ memalloc symref.c(1): alloc 32 bytes at ADDR_14+ memalloc symref.c(2): alloc 12 bytes at ADDR_15+ Symbol VAR1 (VAR1) = 123, type = 0x00 [], ref = [1 ], owner = CURRENTMODULE+ memalloc strpool.c(2): alloc 36 bytes at ADDR_16+ memalloc strpool.c(3): alloc 12 bytes at ADDR_17+ Symbol VAR1 (VAR1@...) = 123, type = 0x00 [], ref = [1 ], owner = CURRENTMODULE++ ---- TEST: Delete symbol ----++ memalloc symref.c(1): free 32 bytes at ADDR_14 allocated at symref.c(1)+ memalloc symref.c(2): free 12 bytes at ADDR_15 allocated at symref.c(2)+ memalloc symref.c(2): free 40 bytes at ADDR_13 allocated at symref.c(2)+ memalloc sym.c(1): free 48 bytes at ADDR_12 allocated at sym.c(1)---- TEST: Global symtab ----! memalloc symtab.c(1): alloc 32 bytes at ADDR_18! memalloc strhash.c(1): alloc 32 bytes at ADDR_19Symtab &#34;global&#34;: EMPTY! memalloc symtab.c(1): alloc 32 bytes at ADDR_20! memalloc strhash.c(1): alloc 32 bytes at ADDR_21Symtab &#34;static&#34;: EMPTY---- TEST: Concat symbol tables ----! memalloc symtab.c(1): alloc 32 bytes at ADDR_22! memalloc strhash.c(1): alloc 32 bytes at ADDR_23! memalloc sym.c(1): alloc 48 bytes at ADDR_24! memalloc symref.c(2): alloc 40 bytes at ADDR_25! memalloc symref.c(1): alloc 32 bytes at ADDR_26! memalloc symref.c(2): alloc 12 bytes at ADDR_27! memalloc strhash.c(4): alloc 40 bytes at ADDR_28! memalloc strhash.c(5): alloc 44 bytes at ADDR_29! memalloc strhash.c(5): alloc 384 bytes at ADDR_30! memalloc symref.c(2): free 12 bytes at ADDR_27 allocated at symref.c(2)memalloc symref.c(2): alloc 12 bytes at ADDR_31! memalloc sym.c(1): alloc 48 bytes at ADDR_32! memalloc symref.c(2): alloc 40 bytes at ADDR_33! memalloc strpool.c(2): alloc 36 bytes at ADDR_34! memalloc strpool.c(3): alloc 5 bytes at ADDR_35! memalloc symref.c(1): alloc 32 bytes at ADDR_36! memalloc symref.c(2): alloc 12 bytes at ADDR_37! memalloc strhash.c(4): alloc 40 bytes at ADDR_38! memalloc symref.c(2): free 12 bytes at ADDR_37 allocated at symref.c(2)memalloc symref.c(2): alloc 12 bytes at ADDR_39! memalloc sym.c(1): alloc 48 bytes at ADDR_40! memalloc symref.c(2): alloc 40 bytes at ADDR_41! memalloc strpool.c(2): alloc 36 bytes at ADDR_42! memalloc strpool.c(3): alloc 5 bytes at ADDR_43! memalloc symref.c(1): alloc 32 bytes at ADDR_44! memalloc symref.c(2): alloc 12 bytes at ADDR_45! memalloc strhash.c(4): alloc 40 bytes at ADDR_46! memalloc symref.c(2): free 12 bytes at ADDR_45 allocated at symref.c(2)memalloc symref.c(2): alloc 12 bytes at ADDR_47! Symtab &#34;tab1&#34;:!&#160; &#160;Symbol VAR1 (VAR1) = 1, type = 0x01 [DEFINED ], ref = [1 ], owner = NULL!&#160; &#160;Symbol VAR2 (VAR2) = 2, type = 0x01 [DEFINED ], ref = [2 ], owner = NULL!&#160; &#160;Symbol VAR3 (VAR3) = -3, type = 0x01 [DEFINED ], ref = [3 ], owner = NULL! memalloc symtab.c(1): alloc 32 bytes at ADDR_48! memalloc strhash.c(1): alloc 32 bytes at ADDR_49! memalloc sym.c(1): alloc 48 bytes at ADDR_50! memalloc symref.c(2): alloc 40 bytes at ADDR_51! memalloc symref.c(1): alloc 32 bytes at ADDR_52! memalloc symref.c(2): alloc 12 bytes at ADDR_53! memalloc strhash.c(4): alloc 40 bytes at ADDR_54! memalloc strhash.c(5): alloc 44 bytes at ADDR_55! memalloc strhash.c(5): alloc 384 bytes at ADDR_56! memalloc symref.c(2): free 12 bytes at ADDR_53 allocated at symref.c(2)memalloc symref.c(2): alloc 12 bytes at ADDR_57! memalloc sym.c(1): alloc 48 bytes at ADDR_58! memalloc symref.c(2): alloc 40 bytes at ADDR_59! memalloc strpool.c(2): alloc 36 bytes at ADDR_60! memalloc strpool.c(3): alloc 5 bytes at ADDR_61! memalloc symref.c(1): alloc 32 bytes at ADDR_62! memalloc symref.c(2): alloc 12 bytes at ADDR_63! memalloc strhash.c(4): alloc 40 bytes at ADDR_64! memalloc symref.c(2): free 12 bytes at ADDR_63 allocated at symref.c(2)memalloc symref.c(2): alloc 12 bytes at ADDR_65! memalloc sym.c(1): alloc 48 bytes at ADDR_66! memalloc symref.c(2): alloc 40 bytes at ADDR_67! memalloc strpool.c(2): alloc 36 bytes at ADDR_68! memalloc strpool.c(3): alloc 5 bytes at ADDR_69memalloc symref.c(1): alloc 32 bytes at ADDR_70memalloc symref.c(2): alloc 12 bytes at ADDR_71! memalloc strhash.c(4): alloc 40 bytes at ADDR_72! memalloc symref.c(2): free 12 bytes at ADDR_71 allocated at symref.c(2)! memalloc symref.c(2): alloc 12 bytes at ADDR_73! Symtab &#34;tab2&#34;:!&#160; &#160;Symbol VAR3 (VAR3) = 3, type = 0x01 [DEFINED ], ref = [4 ], owner = NULL!&#160; &#160;Symbol VAR4 (VAR4) = 4, type = 0x01 [DEFINED ], ref = [5 ], owner = NULL!&#160; &#160;Symbol VAR5 (VAR5) = 5, type = 0x01 [DEFINED ], ref = [6 ], owner = NULL! memalloc sym.c(1): alloc 48 bytes at ADDR_74! memalloc symref.c(2): alloc 40 bytes at ADDR_75! memalloc symref.c(1): alloc 32 bytes at ADDR_76! memalloc symref.c(2): alloc 12 bytes at ADDR_77! memalloc symref.c(1): free 32 bytes at ADDR_44 allocated at symref.c(1)! memalloc symref.c(2): free 12 bytes at ADDR_47 allocated at symref.c(2)! memalloc symref.c(2): free 40 bytes at ADDR_41 allocated at symref.c(2)! memalloc sym.c(1): free 48 bytes at ADDR_40 allocated at sym.c(1)! memalloc sym.c(1): alloc 48 bytes at ADDR_78! memalloc symref.c(2): alloc 40 bytes at ADDR_79! memalloc symref.c(1): alloc 32 bytes at ADDR_80! memalloc symref.c(2): alloc 12 bytes at ADDR_81! memalloc strhash.c(4): alloc 40 bytes at ADDR_82! memalloc sym.c(1): alloc 48 bytes at ADDR_83! memalloc symref.c(2): alloc 40 bytes at ADDR_84! memalloc symref.c(1): alloc 32 bytes at ADDR_85! memalloc symref.c(2): alloc 12 bytes at ADDR_86! memalloc strhash.c(4): alloc 40 bytes at ADDR_87Symtab &#34;merged_tab&#34;:!&#160; &#160;Symbol VAR1 (VAR1) = 1, type = 0x01 [DEFINED ], ref = [1 ], owner = NULL!&#160; &#160;Symbol VAR2 (VAR2) = 2, type = 0x01 [DEFINED ], ref = [2 ], owner = NULL!&#160; &#160;Symbol VAR3 (VAR3) = 3, type = 0x01 [DEFINED ], ref = [4 ], owner = NULL!&#160; &#160;Symbol VAR4 (VAR4) = 4, type = 0x01 [DEFINED ], ref = [5 ], owner = NULL!&#160; &#160;Symbol VAR5 (VAR5) = 5, type = 0x01 [DEFINED ], ref = [6 ], owner = NULL! memalloc symref.c(1): free 32 bytes at ADDR_26 allocated at symref.c(1)! memalloc symref.c(2): free 12 bytes at ADDR_31 allocated at symref.c(2)! memalloc symref.c(2): free 40 bytes at ADDR_25 allocated at symref.c(2)! memalloc sym.c(1): free 48 bytes at ADDR_24 allocated at sym.c(1)! memalloc strhash.c(3): free 40 bytes at ADDR_28 allocated at strhash.c(4)! memalloc symref.c(1): free 32 bytes at ADDR_36 allocated at symref.c(1)! memalloc symref.c(2): free 12 bytes at ADDR_39 allocated at symref.c(2)! memalloc symref.c(2): free 40 bytes at ADDR_33 allocated at symref.c(2)! memalloc sym.c(1): free 48 bytes at ADDR_32 allocated at sym.c(1)! memalloc strhash.c(3): free 40 bytes at ADDR_38 allocated at strhash.c(4)! memalloc symref.c(1): free 32 bytes at ADDR_76 allocated at symref.c(1)! memalloc symref.c(2): free 12 bytes at ADDR_77 allocated at symref.c(2)! memalloc symref.c(2): free 40 bytes at ADDR_75 allocated at symref.c(2)! memalloc sym.c(1): free 48 bytes at ADDR_74 allocated at sym.c(1)! memalloc strhash.c(3): free 40 bytes at ADDR_46 allocated at strhash.c(4)! memalloc symref.c(1): free 32 bytes at ADDR_80 allocated at symref.c(1)! memalloc symref.c(2): free 12 bytes at ADDR_81 allocated at symref.c(2)! memalloc symref.c(2): free 40 bytes at ADDR_79 allocated at symref.c(2)! memalloc sym.c(1): free 48 bytes at ADDR_78 allocated at sym.c(1)! memalloc strhash.c(3): free 40 bytes at ADDR_82 allocated at strhash.c(4)! memalloc symref.c(1): free 32 bytes at ADDR_85 allocated at symref.c(1)! memalloc symref.c(2): free 12 bytes at ADDR_86 allocated at symref.c(2)! memalloc symref.c(2): free 40 bytes at ADDR_84 allocated at symref.c(2)! memalloc sym.c(1): free 48 bytes at ADDR_83 allocated at sym.c(1)! memalloc strhash.c(2): free 384 bytes at ADDR_30 allocated at strhash.c(5)! memalloc strhash.c(2): free 44 bytes at ADDR_29 allocated at strhash.c(5)! memalloc strhash.c(3): free 40 bytes at ADDR_87 allocated at strhash.c(4)! memalloc symtab.c(1): free 32 bytes at ADDR_22 allocated at symtab.c(1)! memalloc symref.c(1): free 32 bytes at ADDR_52 allocated at symref.c(1)! memalloc symref.c(2): free 12 bytes at ADDR_57 allocated at symref.c(2)! memalloc symref.c(2): free 40 bytes at ADDR_51 allocated at symref.c(2)! memalloc sym.c(1): free 48 bytes at ADDR_50 allocated at sym.c(1)! memalloc strhash.c(3): free 40 bytes at ADDR_54 allocated at strhash.c(4)! memalloc symref.c(1): free 32 bytes at ADDR_62 allocated at symref.c(1)! memalloc symref.c(2): free 12 bytes at ADDR_65 allocated at symref.c(2)! memalloc symref.c(2): free 40 bytes at ADDR_59 allocated at symref.c(2)! memalloc sym.c(1): free 48 bytes at ADDR_58 allocated at sym.c(1)! memalloc strhash.c(3): free 40 bytes at ADDR_64 allocated at strhash.c(4)memalloc symref.c(1): free 32 bytes at ADDR_70 allocated at symref.c(1)! memalloc symref.c(2): free 12 bytes at ADDR_73 allocated at symref.c(2)! memalloc symref.c(2): free 40 bytes at ADDR_67 allocated at symref.c(2)! memalloc sym.c(1): free 48 bytes at ADDR_66 allocated at sym.c(1)! memalloc strhash.c(2): free 384 bytes at ADDR_56 allocated at strhash.c(5)! memalloc strhash.c(2): free 44 bytes at ADDR_55 allocated at strhash.c(5)! memalloc strhash.c(3): free 40 bytes at ADDR_72 allocated at strhash.c(4)! memalloc symtab.c(1): free 32 bytes at ADDR_48 allocated at symtab.c(1)---- TEST: Sort ----! memalloc symtab.c(1): alloc 32 bytes at ADDR_88! memalloc strhash.c(1): alloc 32 bytes at ADDR_89! memalloc sym.c(1): alloc 48 bytes at ADDR_90! memalloc symref.c(2): alloc 40 bytes at ADDR_91! memalloc strpool.c(2): alloc 36 bytes at ADDR_92! memalloc strpool.c(3): alloc 4 bytes at ADDR_93! memalloc symref.c(1): alloc 32 bytes at ADDR_94! memalloc symref.c(2): alloc 12 bytes at ADDR_95! memalloc strhash.c(4): alloc 40 bytes at ADDR_96! memalloc strhash.c(5): alloc 44 bytes at ADDR_97! memalloc strhash.c(5): alloc 384 bytes at ADDR_98! memalloc symref.c(2): free 12 bytes at ADDR_95 allocated at symref.c(2)memalloc symref.c(2): alloc 12 bytes at ADDR_99! memalloc sym.c(1): alloc 48 bytes at ADDR_100! memalloc symref.c(2): alloc 40 bytes at ADDR_101! memalloc strpool.c(2): alloc 36 bytes at ADDR_102! memalloc strpool.c(3): alloc 4 bytes at ADDR_103! memalloc symref.c(1): alloc 32 bytes at ADDR_104! memalloc symref.c(2): alloc 12 bytes at ADDR_105! memalloc strhash.c(4): alloc 40 bytes at ADDR_106! memalloc symref.c(2): free 12 bytes at ADDR_105 allocated at symref.c(2)memalloc symref.c(2): alloc 12 bytes at ADDR_107! memalloc sym.c(1): alloc 48 bytes at ADDR_108! memalloc symref.c(2): alloc 40 bytes at ADDR_109! memalloc strpool.c(2): alloc 36 bytes at ADDR_110! memalloc strpool.c(3): alloc 6 bytes at ADDR_111! memalloc symref.c(1): alloc 32 bytes at ADDR_112! memalloc symref.c(2): alloc 12 bytes at ADDR_113! memalloc strhash.c(4): alloc 40 bytes at ADDR_114! memalloc symref.c(2): free 12 bytes at ADDR_113 allocated at symref.c(2)memalloc symref.c(2): alloc 12 bytes at ADDR_115! memalloc sym.c(1): alloc 48 bytes at ADDR_116! memalloc symref.c(2): alloc 40 bytes at ADDR_117! memalloc strpool.c(2): alloc 36 bytes at ADDR_118! memalloc strpool.c(3): alloc 5 bytes at ADDR_119! memalloc symref.c(1): alloc 32 bytes at ADDR_120! memalloc symref.c(2): alloc 12 bytes at ADDR_121! memalloc strhash.c(4): alloc 40 bytes at ADDR_122! memalloc symref.c(2): free 12 bytes at ADDR_121 allocated at symref.c(2)! memalloc symref.c(2): alloc 12 bytes at ADDR_123Symtab &#34;tab&#34;:!&#160; &#160;Symbol ONE (ONE) = 1, type = 0x01 [DEFINED ], ref = [7 ], owner = NULL!&#160; &#160;Symbol TWO (TWO) = 2, type = 0x01 [DEFINED ], ref = [8 ], owner = NULL!&#160; &#160;Symbol THREE (THREE) = 3, type = 0x01 [DEFINED ], ref = [9 ], owner = NULL!&#160; &#160;Symbol FOUR (FOUR) = 4, type = 0x01 [DEFINED ], ref = [10 ], owner = NULLSymtab &#34;tab by name&#34;:!&#160; &#160;Symbol FOUR (FOUR) = 4, type = 0x01 [DEFINED ], ref = [10 ], owner = NULL!&#160; &#160;Symbol ONE (ONE) = 1, type = 0x01 [DEFINED ], ref = [7 ], owner = NULL!&#160; &#160;Symbol THREE (THREE) = 3, type = 0x01 [DEFINED ], ref = [9 ], owner = NULL!&#160; &#160;Symbol TWO (TWO) = 2, type = 0x01 [DEFINED ], ref = [8 ], owner = NULLSymtab &#34;tab by value&#34;:!&#160; &#160;Symbol ONE (ONE) = 1, type = 0x01 [DEFINED ], ref = [7 ], owner = NULL!&#160; &#160;Symbol TWO (TWO) = 2, type = 0x01 [DEFINED ], ref = [8 ], owner = NULL!&#160; &#160;Symbol THREE (THREE) = 3, type = 0x01 [DEFINED ], ref = [9 ], owner = NULL!&#160; &#160;Symbol FOUR (FOUR) = 4, type = 0x01 [DEFINED ], ref = [10 ], owner = NULL! memalloc symref.c(1): free 32 bytes at ADDR_94 allocated at symref.c(1)! memalloc symref.c(2): free 12 bytes at ADDR_99 allocated at symref.c(2)! memalloc symref.c(2): free 40 bytes at ADDR_91 allocated at symref.c(2)! memalloc sym.c(1): free 48 bytes at ADDR_90 allocated at sym.c(1)! memalloc strhash.c(3): free 40 bytes at ADDR_96 allocated at strhash.c(4)! memalloc symref.c(1): free 32 bytes at ADDR_104 allocated at symref.c(1)! memalloc symref.c(2): free 12 bytes at ADDR_107 allocated at symref.c(2)! memalloc symref.c(2): free 40 bytes at ADDR_101 allocated at symref.c(2)! memalloc sym.c(1): free 48 bytes at ADDR_100 allocated at sym.c(1)! memalloc strhash.c(3): free 40 bytes at ADDR_106 allocated at strhash.c(4)! memalloc symref.c(1): free 32 bytes at ADDR_112 allocated at symref.c(1)! memalloc symref.c(2): free 12 bytes at ADDR_115 allocated at symref.c(2)! memalloc symref.c(2): free 40 bytes at ADDR_109 allocated at symref.c(2)! memalloc sym.c(1): free 48 bytes at ADDR_108 allocated at sym.c(1)! memalloc strhash.c(3): free 40 bytes at ADDR_114 allocated at strhash.c(4)! memalloc symref.c(1): free 32 bytes at ADDR_120 allocated at symref.c(1)! memalloc symref.c(2): free 12 bytes at ADDR_123 allocated at symref.c(2)! memalloc symref.c(2): free 40 bytes at ADDR_117 allocated at symref.c(2)! memalloc sym.c(1): free 48 bytes at ADDR_116 allocated at sym.c(1)! memalloc strhash.c(2): free 384 bytes at ADDR_98 allocated at strhash.c(5)! memalloc strhash.c(2): free 44 bytes at ADDR_97 allocated at strhash.c(5)! memalloc strhash.c(3): free 40 bytes at ADDR_122 allocated at strhash.c(4)! memalloc symtab.c(1): free 32 bytes at ADDR_88 allocated at symtab.c(1)---- TEST: Use local symbol before definition ----! memalloc sym.c(1): alloc 48 bytes at ADDR_124! memalloc symref.c(2): alloc 40 bytes at ADDR_125! memalloc strpool.c(2): alloc 36 bytes at ADDR_126! memalloc strpool.c(3): alloc 6 bytes at ADDR_127! memalloc symref.c(1): alloc 32 bytes at ADDR_128! memalloc symref.c(2): alloc 12 bytes at ADDR_129! memalloc strhash.c(4): alloc 40 bytes at ADDR_130! memalloc strhash.c(5): alloc 44 bytes at ADDR_131! memalloc strhash.c(5): alloc 384 bytes at ADDR_132! memalloc symref.c(2): free 12 bytes at ADDR_129 allocated at symref.c(2)! memalloc symref.c(2): alloc 12 bytes at ADDR_133! memalloc sym.c(1): alloc 48 bytes at ADDR_134! memalloc symref.c(2): alloc 40 bytes at ADDR_135! memalloc symref.c(1): alloc 32 bytes at ADDR_136! memalloc symref.c(2): alloc 12 bytes at ADDR_137! memalloc strhash.c(4): alloc 40 bytes at ADDR_138! memalloc strhash.c(5): alloc 44 bytes at ADDR_139! memalloc strhash.c(5): alloc 384 bytes at ADDR_140! memalloc sym.c(1): alloc 48 bytes at ADDR_141! memalloc symref.c(2): alloc 40 bytes at ADDR_142! memalloc strpool.c(2): alloc 36 bytes at ADDR_143! memalloc strpool.c(3): alloc 6 bytes at ADDR_144! memalloc symref.c(1): alloc 32 bytes at ADDR_145! memalloc symref.c(2): alloc 12 bytes at ADDR_146! memalloc strhash.c(4): alloc 40 bytes at ADDR_147! memalloc strhash.c(5): alloc 44 bytes at ADDR_148! memalloc strhash.c(5): alloc 384 bytes at ADDR_149! memalloc symref.c(2): free 12 bytes at ADDR_146 allocated at symref.c(2)memalloc symref.c(2): alloc 12 bytes at ADDR_150! memalloc sym.c(1): alloc 48 bytes at ADDR_151! memalloc symref.c(2): alloc 40 bytes at ADDR_152! memalloc strpool.c(2): alloc 36 bytes at ADDR_153! memalloc strpool.c(3): alloc 3 bytes at ADDR_154! memalloc symref.c(1): alloc 32 bytes at ADDR_155! memalloc symref.c(2): alloc 12 bytes at ADDR_156! memalloc strhash.c(4): alloc 40 bytes at ADDR_157! memalloc symref.c(1): alloc 32 bytes at ADDR_158! memalloc symref.c(2): alloc 12 bytes at ADDR_159! memalloc symref.c(1): alloc 32 bytes at ADDR_160! memalloc symref.c(2): alloc 12 bytes at ADDR_161! memalloc strpool.c(2): alloc 36 bytes at ADDR_162! memalloc strpool.c(3): alloc 10 bytes at ADDR_163! Symbol NN (NN@...) = 12, type = 0x1B [DEFINED TOUCHED ADDR LOCAL ], ref = [10 6 8 ], owner = CURRENTMODULESymtab &#34;global tab&#34;:!&#160; &#160;Symbol ASMPC (ASMPC) = 12, type = 0x03 [DEFINED TOUCHED ], ref = [3 ], owner = NULLSymtab &#34;static tab&#34;:!&#160; &#160;Symbol WIN32 (WIN32) = 1, type = 0x01 [DEFINED ], ref = [1 ], owner = NULLSymtab &#34;local tab&#34;:!&#160; &#160;Symbol WIN32 (WIN32) = 1, type = 0x01 [DEFINED ], ref = [1 ], owner = NULL!&#160; &#160;Symbol NN (NN@...) = 12, type = 0x1B [DEFINED TOUCHED ADDR LOCAL ], ref = [10 6 8 ], owner = CURRENTMODULE---- TEST: End ----! memalloc strhash.c(1): free 32 bytes at ADDR_89 allocated at strhash.c(1)! memalloc strhash.c(1): free 32 bytes at ADDR_49 allocated at strhash.c(1)! memalloc strhash.c(1): free 32 bytes at ADDR_23 allocated at strhash.c(1)! memalloc symref.c(1): free 32 bytes at ADDR_128 allocated at symref.c(1)! memalloc symref.c(2): free 12 bytes at ADDR_133 allocated at symref.c(2)! memalloc symref.c(2): free 40 bytes at ADDR_125 allocated at symref.c(2)! memalloc sym.c(1): free 48 bytes at ADDR_124 allocated at sym.c(1)! memalloc strhash.c(2): free 384 bytes at ADDR_132 allocated at strhash.c(5)! memalloc strhash.c(2): free 44 bytes at ADDR_131 allocated at strhash.c(5)! memalloc strhash.c(3): free 40 bytes at ADDR_130 allocated at strhash.c(4)! memalloc symtab.c(1): free 32 bytes at ADDR_20 allocated at symtab.c(1)! memalloc strhash.c(1): free 32 bytes at ADDR_21 allocated at strhash.c(1)! memalloc symref.c(1): free 32 bytes at ADDR_145 allocated at symref.c(1)memalloc symref.c(2): free 12 bytes at ADDR_150 allocated at symref.c(2)! memalloc symref.c(2): free 40 bytes at ADDR_142 allocated at symref.c(2)! memalloc sym.c(1): free 48 bytes at ADDR_141 allocated at sym.c(1)! memalloc strhash.c(2): free 384 bytes at ADDR_149 allocated at strhash.c(5)! memalloc strhash.c(2): free 44 bytes at ADDR_148 allocated at strhash.c(5)! memalloc strhash.c(3): free 40 bytes at ADDR_147 allocated at strhash.c(4)! memalloc symtab.c(1): free 32 bytes at ADDR_18 allocated at symtab.c(1)! memalloc strhash.c(1): free 32 bytes at ADDR_19 allocated at strhash.c(1)! memalloc symref.c(1): free 32 bytes at ADDR_136 allocated at symref.c(1)! memalloc symref.c(2): free 12 bytes at ADDR_137 allocated at symref.c(2)! memalloc symref.c(2): free 40 bytes at ADDR_135 allocated at symref.c(2)! memalloc sym.c(1): free 48 bytes at ADDR_134 allocated at sym.c(1)! memalloc strhash.c(3): free 40 bytes at ADDR_138 allocated at strhash.c(4)! memalloc symref.c(1): free 32 bytes at ADDR_160 allocated at symref.c(1)! memalloc symref.c(2): free 12 bytes at ADDR_161 allocated at symref.c(2)! memalloc symref.c(1): free 32 bytes at ADDR_155 allocated at symref.c(1)! memalloc symref.c(2): free 12 bytes at ADDR_156 allocated at symref.c(2)! memalloc symref.c(1): free 32 bytes at ADDR_158 allocated at symref.c(1)! memalloc symref.c(2): free 12 bytes at ADDR_159 allocated at symref.c(2)! memalloc symref.c(2): free 40 bytes at ADDR_152 allocated at symref.c(2)! memalloc sym.c(1): free 48 bytes at ADDR_151 allocated at sym.c(1)! memalloc strhash.c(2): free 384 bytes at ADDR_140 allocated at strhash.c(5)! memalloc strhash.c(2): free 44 bytes at ADDR_139 allocated at strhash.c(5)! memalloc strhash.c(3): free 40 bytes at ADDR_157 allocated at strhash.c(4)memalloc symtab.c(1): free 32 bytes at ADDR_1 allocated at symtab.c(1)memalloc strhash.c(1): free 32 bytes at ADDR_2 allocated at strhash.c(1)memalloc strpool.c(6): free 5 bytes at ADDR_7 allocated at strpool.c(3)memalloc strpool.c(7): free 36 bytes at ADDR_6 allocated at strpool.c(2)! memalloc strpool.c(6): free 12 bytes at ADDR_17 allocated at strpool.c(3)! memalloc strpool.c(7): free 36 bytes at ADDR_16 allocated at strpool.c(2)! memalloc strpool.c(6): free 5 bytes at ADDR_35 allocated at strpool.c(3)! memalloc strpool.c(7): free 36 bytes at ADDR_34 allocated at strpool.c(2)! memalloc strpool.c(6): free 5 bytes at ADDR_43 allocated at strpool.c(3)! memalloc strpool.c(7): free 36 bytes at ADDR_42 allocated at strpool.c(2)! memalloc strpool.c(6): free 5 bytes at ADDR_61 allocated at strpool.c(3)! memalloc strpool.c(7): free 36 bytes at ADDR_60 allocated at strpool.c(2)! memalloc strpool.c(6): free 5 bytes at ADDR_69 allocated at strpool.c(3)! memalloc strpool.c(7): free 36 bytes at ADDR_68 allocated at strpool.c(2)! memalloc strpool.c(6): free 4 bytes at ADDR_93 allocated at strpool.c(3)! memalloc strpool.c(7): free 36 bytes at ADDR_92 allocated at strpool.c(2)! memalloc strpool.c(6): free 4 bytes at ADDR_103 allocated at strpool.c(3)! memalloc strpool.c(7): free 36 bytes at ADDR_102 allocated at strpool.c(2)! memalloc strpool.c(6): free 6 bytes at ADDR_111 allocated at strpool.c(3)! memalloc strpool.c(7): free 36 bytes at ADDR_110 allocated at strpool.c(2)! memalloc strpool.c(6): free 5 bytes at ADDR_119 allocated at strpool.c(3)! memalloc strpool.c(7): free 36 bytes at ADDR_118 allocated at strpool.c(2)! memalloc strpool.c(6): free 6 bytes at ADDR_127 allocated at strpool.c(3)! memalloc strpool.c(7): free 36 bytes at ADDR_126 allocated at strpool.c(2)! memalloc strpool.c(6): free 6 bytes at ADDR_144 allocated at strpool.c(3)! memalloc strpool.c(7): free 36 bytes at ADDR_143 allocated at strpool.c(2)! memalloc strpool.c(6): free 3 bytes at ADDR_154 allocated at strpool.c(3)! memalloc strpool.c(7): free 36 bytes at ADDR_153 allocated at strpool.c(2)memalloc strpool.c(5): free 384 bytes at ADDR_9 allocated at strpool.c(4)memalloc strpool.c(5): free 44 bytes at ADDR_8 allocated at strpool.c(4)! memalloc strpool.c(6): free 10 bytes at ADDR_163 allocated at strpool.c(3)! memalloc strpool.c(7): free 36 bytes at ADDR_162 allocated at strpool.c(2)memalloc strpool.c(1): free 32 bytes at ADDR_3 allocated at strpool.c(1)memalloc: cleanup------------------------------------------------------------------------------This SF.net email is sponsored by Windows:Build for Windows Store.http://p.sf.net/sfu/windows-dev2dev
</description>
<pubDate>Sun, 16 Jun 2013 17:49:22 +0100</pubDate>
</item>
<item>
<title>[z88dk-dev] Can't find the problem in Mailing Lists : z88dk-developers</title>
<link>http://www.z88dk.org/forum/viewtopic.php?pid=8615#8615</link>
<guid isPermaLink="false">8615@http://www.z88dk.org/forum</guid>
<description>Topic: [z88dk-dev] Can't find the problem

Message: Thank you&#160; !From: Paulo CustodioSent: Sunday, June 16, 2013 2:32 PMTo: Stefano BodratoCc: z88dk-developers@...Subject: Re: [z88dk-dev] Can't find the problemFound it.First problem: BUG_0037 in z80asm, introduced by the removal of the notdecl_tab symbol table (in z80asm version 1.2.1) and not taking into account usage of a DEFINE symbol before definition --&#62; fixed in z80asm version 1.2.3Second problem: missing libraries when compiling mandel.c for the ZX Spectrum. The command line below compiles mandel.c successfully:zcc +zx -lndos -lmzx -create-app -omandel mandel.cRegards,PauloOn Sat, Jun 15, 2013 at 11:22 PM, Paulo Custodio &#60;pauloscustodio@...&#62; wrote:I have solved the problem in z80asm with the above code failing, but the mandel.c is still failing compilation:Error at file 'c:/Data/Projects/z80asm/z88dk/lib/clibs/zx_clib.lib' module 'FCLOSE': Symbol not defined in expression 'CLOSE'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module 'MANDEL': Symbol not defined in expression 'MINUSFA'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module 'MANDEL': Symbol not defined in expression 'DSUB'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module 'MANDEL': Symbol not defined in expression 'FLOAT'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module 'MANDEL': Symbol not defined in expression 'DDIV'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module 'MANDEL': Symbol not defined in expression 'DSUB'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module 'MANDEL': Symbol not defined in expression 'FLOAT'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module 'MANDEL': Symbol not defined in expression 'DDIV'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module 'MANDEL': Symbol not defined in expression 'FLOAT'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module 'MANDEL': Symbol not defined in expression 'DMUL'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module 'MANDEL': Symbol not defined in expression 'DADD'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module 'MANDEL': Symbol not defined in expression 'FLOAT'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module 'MANDEL': Symbol not defined in expression 'DMUL'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module 'MANDEL': Symbol not defined in expression 'DADD'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module 'MANDEL': Symbol not defined in expression 'DSUB'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module 'MANDEL': Symbol not defined in expression 'DADD'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module 'MANDEL': Symbol not defined in expression 'DMUL'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module 'MANDEL': Symbol not defined in expression 'DMUL'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module 'MANDEL': Symbol not defined in expression 'DADD'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module 'MANDEL': Symbol not defined in expression 'DMUL'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module 'MANDEL': Symbol not defined in expression 'DMUL'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module 'MANDEL': Symbol not defined in expression 'DADD'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module 'MANDEL': Symbol not defined in expression 'DLT'Any ideas?On Sat, Jun 15, 2013 at 10:01 PM, Paulo Custodio &#60;pauloscustodio@...&#62; wrote:I think it's my fault, due to the changes in the symbol table handling that I have been making.The simple code:IF !NEED_floatpackDEFINE NEED_floatpackENDIFdefb NEED_floatpackfails with &#34;Symbol 'NEED_FLOATPACK' already defined&#34; with the current z80asm version, but assembles OK with version 1.2.0 (CVS tag z80asm-1_2_00).I will investigate further.Regards,PauloOn Sat, Jun 15, 2013 at 3:49 PM, Stefano Bodrato &#60;stefano_bodrato@...&#62; wrote:Can't understand what's happening here.. I have the impression I met a similar behavior already but I'm not sure.Using the 'stable' z80asm version does not solve. Ideas ?C:\z88dk\examples\graphics&#62;zcc +zx mandel.ccp /cygdrive/c/z88dk/lib/spec_crt0.opt /tmp/tmpQzM67Yna.optcp /tmp/tmpQzM67Yna.opt /tmp/tmpQzM67Yna.asmzcpp -I. -DZ80 -DSMALL_C -DSPECTRUM -D__SPECTRUM__ -DSCCZ80 -I/cygdrive/c/z88dk/include mandel.c /tmp/tmpuptJMuN9.isccz80 /tmp/tmpuptJMuN9.icopt /cygdrive/c/z88dk/lib/z80rules.2 &#60; /tmp/tmpuptJMuN9.asm &#62; /tmp/tmpuptJMuN9.op1copt /cygdrive/c/z88dk/lib/z80rules.1 &#60; /tmp/tmpuptJMuN9.op1 &#62; /tmp/tmpuptJMuN9.optz80asm -eopt -ns -Mo -I/cygdrive/c/z88dk/lib /tmp/tmpuptJMuN9.optz80asm -a -m -Mo -L/cygdrive/c/z88dk/lib/clibs -I/cygdrive/c/z88dk/lib -oa.bin -izx_clib -iz80_crt0 /tmp/tmpQzM67Yna.opt /tmp/tmpuptJMuN9.oError at file 'zcc_opt.def' line 8: Symbol 'NEED_FLOATPACK' already defined1 errors occurred during assemblyKey to filenames:/tmp/tmpuptJMuN9.o = mandel.cError at file 'zcc_opt.def' line 8: Symbol 'NEED_FLOATPACK' already defined^ ---- DEFINE NEED_floatpack------------------------------------------------------------------------------This SF.net email is sponsored by Windows:Build for Windows Store.http://p.sf.net/sfu/windows-dev2dev--------------------------------------------------------------------------------------------------------------------------------------------------------------This SF.net email is sponsored by Windows:Build for Windows Store.http://p.sf.net/sfu/windows-dev2dev--------------------------------------------------------------------------------
</description>
<pubDate>Sun, 16 Jun 2013 14:33:07 +0100</pubDate>
</item>
<item>
<title>[z88dk-dev] Can't find the problem in Mailing Lists : z88dk-developers</title>
<link>http://www.z88dk.org/forum/viewtopic.php?pid=8614#8614</link>
<guid isPermaLink="false">8614@http://www.z88dk.org/forum</guid>
<description>Topic: [z88dk-dev] Can't find the problem

Message: Found it.First problem: BUG_0037 in z80asm, introduced by the removal of thenotdecl_tab symbol table (in z80asm version 1.2.1) and not taking intoaccount usage of a DEFINE symbol before definition --&#62; fixed in z80asmversion 1.2.3Second problem: missing libraries when compiling mandel.c for the ZXSpectrum. The command line below compiles mandel.c successfully:zcc +zx -lndos -lmzx -create-app -omandel mandel.cRegards,PauloOn Sat, Jun 15, 2013 at 11:22 PM, Paulo Custodio&#60;pauloscustodio@...&#62;wrote:
I have solved the problem in z80asm with the above code failing, but themandel.c is still failing compilation:Error at file 'c:/Data/Projects/z80asm/z88dk/lib/clibs/zx_clib.lib' module'FCLOSE': Symbol not defined in expression 'CLOSE'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module'MANDEL': Symbol not defined in expression 'MINUSFA'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module'MANDEL': Symbol not defined in expression 'DSUB'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module'MANDEL': Symbol not defined in expression 'FLOAT'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module'MANDEL': Symbol not defined in expression 'DDIV'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module'MANDEL': Symbol not defined in expression 'DSUB'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module'MANDEL': Symbol not defined in expression 'FLOAT'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module'MANDEL': Symbol not defined in expression 'DDIV'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module'MANDEL': Symbol not defined in expression 'FLOAT'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module'MANDEL': Symbol not defined in expression 'DMUL'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module'MANDEL': Symbol not defined in expression 'DADD'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module'MANDEL': Symbol not defined in expression 'FLOAT'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module'MANDEL': Symbol not defined in expression 'DMUL'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module'MANDEL': Symbol not defined in expression 'DADD'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module'MANDEL': Symbol not defined in expression 'DSUB'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module'MANDEL': Symbol not defined in expression 'DADD'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module'MANDEL': Symbol not defined in expression 'DMUL'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module'MANDEL': Symbol not defined in expression 'DMUL'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module'MANDEL': Symbol not defined in expression 'DADD'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module'MANDEL': Symbol not defined in expression 'DMUL'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module'MANDEL': Symbol not defined in expression 'DMUL'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module'MANDEL': Symbol not defined in expression 'DADD'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module'MANDEL': Symbol not defined in expression 'DLT'Any ideas?On Sat, Jun 15, 2013 at 10:01 PM, Paulo Custodio &#60;pauloscustodio@...
wrote:I think it's my fault, due to the changes in the symbol table handlingthat I have been making.The simple code:IF !NEED_floatpackDEFINE NEED_floatpackENDIFdefb NEED_floatpackfails with &#34;Symbol 'NEED_FLOATPACK' already defined&#34; with the currentz80asm version, but assembles OK with version 1.2.0 (CVS tag z80asm-1_2_00).I will investigate further.Regards,PauloOn Sat, Jun 15, 2013 at 3:49 PM, Stefano Bodrato &#60;stefano_bodrato@...&#62; wrote:
Can't understand what's happening here.. I have the impression I meta similar behavior already but I'm not sure.Using the 'stable' z80asm version does not solve. Ideas ?C:\z88dk\examples\graphics&#62;zcc +zx mandel.ccp /cygdrive/c/z88dk/lib/spec_crt0.opt /tmp/tmpQzM67Yna.optcp /tmp/tmpQzM67Yna.opt /tmp/tmpQzM67Yna.asmzcpp -I. -DZ80 -DSMALL_C -DSPECTRUM -D__SPECTRUM__ -DSCCZ80-I/cygdrive/c/z88dk/include mandel.c /tmp/tmpuptJMuN9.isccz80 /tmp/tmpuptJMuN9.icopt /cygdrive/c/z88dk/lib/z80rules.2 &#60; /tmp/tmpuptJMuN9.asm &#62;/tmp/tmpuptJMuN9.op1copt /cygdrive/c/z88dk/lib/z80rules.1 &#60; /tmp/tmpuptJMuN9.op1 &#62;/tmp/tmpuptJMuN9.optz80asm -eopt -ns -Mo -I/cygdrive/c/z88dk/lib /tmp/tmpuptJMuN9.optz80asm -a -m -Mo -L/cygdrive/c/z88dk/lib/clibs -I/cygdrive/c/z88dk/lib-oa.bin -izx_clib -iz80_crt0 /tmp/tmpQzM67Yna.opt /tmp/tmpuptJMuN9.oError at file 'zcc_opt.def' line 8: Symbol 'NEED_FLOATPACK' alreadydefined1 errors occurred during assemblyKey to filenames:/tmp/tmpuptJMuN9.o = mandel.cError at file 'zcc_opt.def' line 8: Symbol 'NEED_FLOATPACK' alreadydefined^ ---- DEFINE NEED_floatpack------------------------------------------------------------------------------This SF.net email is sponsored by Windows:Build for Windows Store.http://p.sf.net/sfu/windows-dev2dev
</description>
<pubDate>Sun, 16 Jun 2013 13:32:02 +0100</pubDate>
</item>
<item>
<title>[z88dk-dev] Can't find the problem in Mailing Lists : z88dk-developers</title>
<link>http://www.z88dk.org/forum/viewtopic.php?pid=8612#8612</link>
<guid isPermaLink="false">8612@http://www.z88dk.org/forum</guid>
<description>Topic: [z88dk-dev] Can't find the problem

Message: I have solved the problem in z80asm with the above code failing, but themandel.c is still failing compilation:Error at file 'c:/Data/Projects/z80asm/z88dk/lib/clibs/zx_clib.lib' module'FCLOSE': Symbol not defined in expression 'CLOSE'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module'MANDEL': Symbol not defined in expression 'MINUSFA'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module'MANDEL': Symbol not defined in expression 'DSUB'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module'MANDEL': Symbol not defined in expression 'FLOAT'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module'MANDEL': Symbol not defined in expression 'DDIV'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module'MANDEL': Symbol not defined in expression 'DSUB'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module'MANDEL': Symbol not defined in expression 'FLOAT'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module'MANDEL': Symbol not defined in expression 'DDIV'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module'MANDEL': Symbol not defined in expression 'FLOAT'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module'MANDEL': Symbol not defined in expression 'DMUL'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module'MANDEL': Symbol not defined in expression 'DADD'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module'MANDEL': Symbol not defined in expression 'FLOAT'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module'MANDEL': Symbol not defined in expression 'DMUL'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module'MANDEL': Symbol not defined in expression 'DADD'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module'MANDEL': Symbol not defined in expression 'DSUB'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module'MANDEL': Symbol not defined in expression 'DADD'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module'MANDEL': Symbol not defined in expression 'DMUL'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module'MANDEL': Symbol not defined in expression 'DMUL'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module'MANDEL': Symbol not defined in expression 'DADD'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module'MANDEL': Symbol not defined in expression 'DMUL'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module'MANDEL': Symbol not defined in expression 'DMUL'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module'MANDEL': Symbol not defined in expression 'DADD'Error at file 'C:\Users\Paulo\AppData\Local\Temp\s8r8_.asm' module'MANDEL': Symbol not defined in expression 'DLT'Any ideas?On Sat, Jun 15, 2013 at 10:01 PM, Paulo Custodio&#60;pauloscustodio@...&#62;wrote:
I think it's my fault, due to the changes in the symbol table handlingthat I have been making.The simple code:IF !NEED_floatpackDEFINE NEED_floatpackENDIFdefb NEED_floatpackfails with &#34;Symbol 'NEED_FLOATPACK' already defined&#34; with the currentz80asm version, but assembles OK with version 1.2.0 (CVS tag z80asm-1_2_00).I will investigate further.Regards,PauloOn Sat, Jun 15, 2013 at 3:49 PM, Stefano Bodrato &#60;stefano_bodrato@...&#62; wrote:
Can't understand what's happening here.. I have the impression I met asimilar behavior already but I'm not sure.Using the 'stable' z80asm version does not solve. Ideas ?C:\z88dk\examples\graphics&#62;zcc +zx mandel.ccp /cygdrive/c/z88dk/lib/spec_crt0.opt /tmp/tmpQzM67Yna.optcp /tmp/tmpQzM67Yna.opt /tmp/tmpQzM67Yna.asmzcpp -I. -DZ80 -DSMALL_C -DSPECTRUM -D__SPECTRUM__ -DSCCZ80-I/cygdrive/c/z88dk/include mandel.c /tmp/tmpuptJMuN9.isccz80 /tmp/tmpuptJMuN9.icopt /cygdrive/c/z88dk/lib/z80rules.2 &#60; /tmp/tmpuptJMuN9.asm &#62;/tmp/tmpuptJMuN9.op1copt /cygdrive/c/z88dk/lib/z80rules.1 &#60; /tmp/tmpuptJMuN9.op1 &#62;/tmp/tmpuptJMuN9.optz80asm -eopt -ns -Mo -I/cygdrive/c/z88dk/lib /tmp/tmpuptJMuN9.optz80asm -a -m -Mo -L/cygdrive/c/z88dk/lib/clibs -I/cygdrive/c/z88dk/lib-oa.bin -izx_clib -iz80_crt0 /tmp/tmpQzM67Yna.opt /tmp/tmpuptJMuN9.oError at file 'zcc_opt.def' line 8: Symbol 'NEED_FLOATPACK' alreadydefined1 errors occurred during assemblyKey to filenames:/tmp/tmpuptJMuN9.o = mandel.cError at file 'zcc_opt.def' line 8: Symbol 'NEED_FLOATPACK' alreadydefined^ ---- DEFINE NEED_floatpack------------------------------------------------------------------------------This SF.net email is sponsored by Windows:Build for Windows Store.http://p.sf.net/sfu/windows-dev2dev
</description>
<pubDate>Sat, 15 Jun 2013 23:22:57 +0100</pubDate>
</item>
</channel>
</rss>
