From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <7f5aa18624c40a378b8a1fa19dabfd5e@quanstro.net> To: 9fans@cse.psu.edu Subject: Re: [9fans] Hello Assembly From: erik quanstrom Date: Sat, 9 Feb 2008 05:36:30 -0500 In-Reply-To: <9bcb80e28d8b5b74840bac68585c91c7@quanstro.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 4d96e744-ead3-11e9-9d60-3106f5b1d025 > acid: asm(_main) > _main 0x00001020 SUBL $0x18,SP > _main+0x3 0x00001023 MOVL $0x1,0x0(SP) > _main+0xa 0x0000102a MOVL $string(SB),0x4(FP) > _main+0x12 0x00001032 MOVL $0x7,0x8(FP) > _main+0x1a 0x0000103a MOVL $0x0,0xc(FP) > _main+0x22 0x00001042 MOVL $0x0,0x10(FP) > _main+0x2a 0x0000104a MOVL $0x33,AX > _main+0x2f 0x0000104f INTB $0x40 > _main+0x31 0x00001051 ADDL $0x18,SP > _main+0x34 0x00001054 RET > > why does the ... SP in the .s get changed to FP unless the offset is 0? - erik