🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.games.starcraft
Article #290124

Re: OK you code gurus...

#290124
From: Marshlion
Date: Wed, 22 Mar 2006 04:14
36 lines
3052 bytes
Zealot The Crazy Lui wrote:
> On Wed, 22 Mar 2006 10:58:47 +1200, Marsh_lion
> <marsh...@SPAMparadise.net.nz> wrote:
> 
>>I'm inclined to thign that either you can't add a static number or your 
>>machine is different in that your add command - I've had the later 
>>before. I would first try changing "add esp, 12;" to "add 12, esp;" (you 
>>might want to check the line "lea ebx, scanString;" as well).
> 
> 
> That would be trying to make 12 = 12 + (value of esp), and since you
> can't assign a number a value (it already has one) it wouldn't really
> work. 

Yes and theory isn't always true (as mentioned in my post, I've had an 
issue where the operands of an instruction are the wrong way round).

> I'm certain the orders are correct. I've tried taking out the
> add command and it made no difference whatsoever. (same error same
> place) the program seems to get 'stuck' inside the printf/scanf
> function and doesn't get to the stack pointer part which is what I had
> originally thought was happening. Still no luck trying to fix the
> problem though.
> 

Yeah, it certainly helps if you can test things individually. Add 
commands usually aren't the source of errors (because the are easy to 
implement and check) whereas I could understand if the function call was 
at fault.

Just as an aside, whats the point of this code (or is it an assignment)? 
It is a lot easier just to write what that does in C.

--
Marsh Lion
Code breaker
Technical Details
Message-ID: <4420cedf$1@clear.net.nz>
Path: mbox-mo1.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.clear.net.nz!news.clear.net.nz.POSTED!not-for-mail
References: <34a022ta3sjetnjnkvluulh8sajiq1t5ih@4ax.com> <9fb022917l7so6ahphku2fin844c138r0s@4ax.com> <442084db$1@clear.net.nz> <rg41225r8co1br2haveok93d0rt5orern2@4ax.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.clear.net.nz!news.clear.net.nz.POSTED!not-for-mail
NNTP-Posting-Date: Tue, 21 Mar 2006 22:13:22 -0600
Date: Wed, 22 Mar 2006 16:14:35 +1200
From: Marsh_lion <marsh...@SPAMparadise.net.nz>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: alt.games.starcraft
Subject: Re: OK you code gurus...
References: <34a022ta3sjetnjnkvluulh8sajiq1t5ih@4ax.com> <9fb022917l7so6ahphku2fin844c138r0s@4ax.com> <442084db$1@clear.net.nz> <rg41225r8co1br2haveok93d0rt5orern2@4ax.com>
In-Reply-To: <rg41225r8co1br2haveok93d0rt5orern2@4ax.com>
X-Original-NNTP-Posting-Host: 203-97-163-23.cable.paradise.net.nz
Message-ID: <4420cedf$1@clear.net.nz>
X-Original-Trace: 22 Mar 2006 16:13:19 +1200, 203-97-163-23.cable.paradise.net.nz
Organization: CLEAR Net New Zealand http://www.clear.net.nz - Complaints ab...@clear.net.nz
Lines: 36
NNTP-Posting-Host: 203.97.37.6
X-Trace: sv3-UbjTbEtKyW5743r/sBaYtrjxnB2/K1bGPzXCmOhE14Lf2uE26Rc8cDBUxpfjL8VmT6KO3gDgG33xje+!6WZ1PsJ9zSeb/QCfiIqyN0OMyUGOOPTLaJAlIp9JPX4QH8ASl17oeWWS9Q==
X-Complaints-To: Complaints to ab...@clear.net.nz
X-DMCA-Complaints-To: Complaints to ab...@clear.net.nz
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.32
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit