🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #7122

Re: Assembler Programming - Costs versus Benefits

#7122
From: Mikko Tsokkinen
Date: Fri, 30 Nov 1990 20:15
36 lines
2392 bytes

> Could you please give details about the User instructions (i.e. instructions
> which can be made when running in User mode, not Supervisory mode) which
> behave differently on a 68000 and a 68020 [or 68030] ? I think only
> "move from SR" now traps but the OS should take care of this.

> <"but those aren't correct 68000 programs", which is all well and good but in
> <the real world these instructions exist and are percieved as being useful to
> <the sorts of folks who write manic games in assembler.

> Aha, one difference might be that these guys are writing self modifying code
> which may not work on a 680[234]0 as the changes go into the data cache not the
> main memory or instruction cache.

 90% of all games I have ever seen for amiga doesn't run with faster
processors because the disk loader and other waiting is badly written. 
They use wait loops like this:

wait	move.l	#2000,d0
	dbra.s	d0,wait

And this the absolutely same code as comes from c-compiler when you use similar
wait tactics. It seems too hard for 90% of programmers (on any language) to
use CIA timers. On the other hand the assembler programs are more likely to
crash because most of c-programs are written using the OS and the waiting is
done using the OS functions (this can done as easily with assembler).

 But it's very true that c-sources are much portable. The assambler is not
ment to be portable because the nature of assembler (direct processor
commands). Binaries in any language is just as unportable.

 MIT

--
Bubble Bobble
Technical Details
Message-ID: <MT87692.90Nov30211512@uikku.tut.fi>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!news.funet.fi!assari.tut.fi!tut!mt87692
References: <1990Nov25.040121.10773@zorch.SF-Bay.ORG> <1990Nov25.233007.19698@cs.umu.se> <7139@sugar.hackercorp.com> <1990Nov27.004859.16630@cs.umu.se> <7150@sugar.hackercorp.com> <CEDMAN.90Nov28142350@lynx.ps.uci.edu> <7160@sugar.hackercorp.com> <536@ssp9.idca.t

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!news.funet.fi!assari.tut.fi!tut!mt87692
From: mt87692@tut.fi (Mikko Tsokkinen)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Assembler Programming - Costs versus Benefits
Message-ID: <MT87692.90Nov30211512@uikku.tut.fi>
Date: 30 Nov 90 20:15:12 GMT
References: <1990Nov25.040121.10773@zorch.SF-Bay.ORG>
 <1990Nov25.233007.19698@cs.umu.se> <7139@sugar.hackercorp.com>
 <1990Nov27.004859.16630@cs.umu.se> <7150@sugar.hackercorp.com>
 <CEDMAN.90Nov28142350@lynx.ps.uci.edu> <7160@sugar.hackercorp.com>
 <536@ssp9.idca.t
Sender: news@assari.tut.fi (USENET News System)
Organization: Tampere University of Technology
Lines: 35
In-Reply-To: dolf@idca.tds.PHILIPS.nl's message of 30 Nov 90 07:38:19 GMT