English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 28 October 2018, 18:10   #581
plasmab
Banned
 
plasmab's Avatar
 
Join Date: Sep 2016
Location: UK
Posts: 2,917
68k details

Quote:
Originally Posted by grond View Post
Well, ldm, stm, mul and divs all do well with microcode. Not much but not nothing either. Thanks God or rather Sophie Wilson that they did use microcode and not insist on the programmer using a bunch of primitive instructions to implement these instructions in macrocode...

I think MIPS and also the earlier SPARC required the programmer to use a sequence of shift-add/subtract instructions in order to make multiplications and divisions.


IIRC Sophie had a bit of a sulk (overstating for effect) about DIVS being in there at all. It wasn’t there on ARMv1. She was also pretty against the FPA ... I have one of those too in my A540

[ Show youtube player ]

See from around 7 mins in. Notice that ARM is referred to as the Acorn RISC Machine.

Sophie always seemed pathologically against having anything complex in the chip. Rightly or wrongly

Last edited by plasmab; 28 October 2018 at 18:29.
plasmab is offline  
Old 28 October 2018, 19:37   #582
grond
Registered User
 
Join Date: Jun 2015
Location: Germany
Posts: 1,918
Well, then thanks to Sophie for giving in...
grond is offline  
Old 28 October 2018, 20:58   #583
Bruce Abbott
Registered User
 
Bruce Abbott's Avatar
 
Join Date: Mar 2018
Location: Hastings, New Zealand
Posts: 2,549
Quote:
Originally Posted by litwr View Post
Indeed, systems with 486@25MHz or 68040@20MHz were faster than ARM based at 12MHz but their prices at 90 or 91 were above $10000.
So we are comparing whole systems now?

The CPU is usually only a small part of the total cost. High-end systems generally get the latest CPUs first because they need the power and price doesn't matter, but prices soon tumble once consumer machines get them. By 1992 'high-end' 486 clones were selling for under $2000. In 1993 the Macintosh LC 475 was priced at $1085.

Quote:
Originally Posted by plasmab
The Acorn A4000 was a 12Mhz ARM250. It was released in 1992 and it cost 999 GBP. I have one of these machines.. Very simple.. IDE interface on board. Max 4Mb ram.
I had an A3010 and compared to my Amigas it sucked. The CPU might have been more powerful, but you would never know it because the rest of the system was frustratingly under powered. And I couldn't get any software for it, so what was the point?

All this arguing about whether x or y CPU was more powerful or cost less per mip is silly. A CPU by itself is worthless. It's the other parts of the system - RAM, ROM, chipsets, storage devices, OS, application software - that make the difference. If you are comparing systems then everything must be considered, not just the CPU.
Bruce Abbott is offline  
Old 28 October 2018, 21:30   #584
plasmab
Banned
 
plasmab's Avatar
 
Join Date: Sep 2016
Location: UK
Posts: 2,917
Quote:
Originally Posted by Bruce Abbott View Post
I had an A3010 and compared to my Amigas it sucked. The CPU might have been more powerful, but you would never know it because the rest of the system was frustratingly under powered. And I couldn't get any software for it, so what was the point?
Which part of the "system" was slow? My only frustration with the ARM250 series was they were limited to 4Mb of Ram and they could only use the first 512K as "chip" ram. The IDE interface was buffered and performed better than the A1200, the DMA had better throughput. It could do 1Mhz sound (yes 1MHZ) and happlily does VGA resolutions. So i'm confused about what was slow?

The number of games ported was lower i guess.

EDIT: if you still have that A3010 i'll buy it from you. it has one of the best TV modulator circuits i've ever seen.

Last edited by plasmab; 28 October 2018 at 21:36.
plasmab is offline  
Old 28 October 2018, 21:47   #585
roondar
Registered User
 
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,411
Quote:
Originally Posted by litwr View Post
It is completely untrue. It was meynaf who used high level OS calls to make 68k code smaller. So he used a call to OS routines while I had to use codes for those routines which doesn't present in DOS. Then I rewrote my code eliminating some service auxiliary functions making the condition more equal for the both platforms.
It is actually 'completely' true: I was referring to your use of a .COM file to make your executable size smaller on one specific architecture. That is using OS features to make your code appear smaller than it really is and has absolutely nothing to do with comparing the strength of ISA's.

As for using OS calls, IIRC both of you agreed to not use those any more. As such, I didn't feel it needed to refer to them.

Quote:
Originally Posted by litwr View Post
Indeed, systems with 486@25MHz or 68040@20MHz were faster than ARM based at 12MHz but their prices at 90 or 91 were above $10000. We can introduce new measurement - a performance unit per dollar. With it ARM systems were much better too.
Indeed, Intel's 486 and Motorola's 68040 were faster. To be clear here, they were roughly 3-4x faster than the ARM you are talking about. They were also a whole lot cheaper than you claim.

A 25MHz 486 from april 1991 (see https://books.google.nl/books?id=0FA...201991&f=false) could be bought for $3000.

Four times faster, but only about 1.7 times more expensive (yeah, I forgot to use the exchange rate between pounds and dollars - April 1991 puts it at 1.7 pounds per dollar, so the GPB 999 A3010 would be $1698). Seems Intel wins this round

Note that a fast 386 or 68030 should also comfortably beat the 12MHz ARM2. And those were cheaper still.
Attached Thumbnails
Click image for larger version

Name:	infoworld-april-1991.PNG
Views:	61
Size:	166.7 KB
ID:	60480  

Last edited by roondar; 28 October 2018 at 21:55. Reason: Corrected for Exchange rate.
roondar is offline  
Old 28 October 2018, 22:03   #586
plasmab
Banned
 
plasmab's Avatar
 
Join Date: Sep 2016
Location: UK
Posts: 2,917
Quote:
Originally Posted by roondar View Post

Four times faster, but only about 1.7 times more expensive (yeah, I forgot to use the exchange rate between pounds and dollars - April 1991 puts it at 1.7 pounds per dollar, so the GPB 999 A3010 would be $1698). Seems Intel wins this round

Note that a fast 386 or 68030 should also comfortably beat the 12MHz ARM2. And those were cheaper still.
The Acorn machines were never cheap. They were really really expensive.

The fact that anyone is even comparing chip designed by two British guys with no funding against the 030s and x86s of this world is amazing.

For me this is when the ISA was picked up and built in a professional way

https://en.wikipedia.org/wiki/StrongARM

It was a little late to win the PC battle of the 90s for sure... but its one amazing chip that keeps giving the more you study how to use it.

It confuses me that the optimization fanatics arent more in love with it because its got more secrets to unlock than the 68000. Which I also love.
plasmab is offline  
Old 28 October 2018, 22:08   #587
roondar
Registered User
 
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,411
Quote:
Originally Posted by plasmab View Post
The Acorn machines were never cheap. They were really really expensive.

The fact that anyone is even comparing chip designed by two British guys with no funding against the 030s and x86s of this world is amazing.

For me this is when the ISA was picked up and built in a professional way

https://en.wikipedia.org/wiki/StrongARM

It was a little late to win the PC battle of the 90s for sure... but its one amazing chip that keeps giving the more you study how to use it.

It confuses me that the optimization fanatics arent more in love with it because its got more secrets to unlock than the 68000. Which I also love.
I think it may have to do with the somewhat different style of assembly language. I've looked into ARM2 myself at one point (I wanted to see the precursor to what's powering my iPhone ) and found the code to be harder to read than that of other processors for some reason.

Also, the 1990's was the era in which people slowly transitioned away from doing everything in assembly to begin with, so the timing might also play a role here.
roondar is offline  
Old 29 October 2018, 04:58   #588
Bruce Abbott
Registered User
 
Bruce Abbott's Avatar
 
Join Date: Mar 2018
Location: Hastings, New Zealand
Posts: 2,549
Quote:
Originally Posted by plasmab View Post
if you still have that A3010 i'll buy it from you. it has one of the best TV modulator circuits i've ever seen.
Unfortunately I had a big cleanup and threw it out. Who knew that in a few short years all that old junk would become 'vintage' and highly sought after!
Bruce Abbott is offline  
Old 29 October 2018, 11:04   #589
meynaf
son of 68k
 
meynaf's Avatar
 
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,323
Quote:
Originally Posted by litwr View Post
Sorry but you have used unfair tricks again.
That's the pot calling the kettle black...
Who uses tricks ? Code for time measurement is larger on the Amiga !
So we both can just remove it.


Quote:
Originally Posted by litwr View Post
My spigot implementation claims that it is the fastest but to prove this it requires a timer result. You have cut it! So you code have proved nothing.
Who started cutting ?
Sorry, but your 80386 code appears to have non-working timer code. Where is the text for the message saying what time it took ?
Furthermore, i never said this version was the fastest anymore. I never said it still measured time anymore. No OS calls, we said. I'm just approaching this goal.


Quote:
Originally Posted by litwr View Post
The 80386 is still unbeaten.
I wouldn't say that, no. It's unbeaten only because you constantly change the rules.
However, even with whatever rules you use, it would be largely beaten if using my own "reencoded from 68k" instruction set


Quote:
Originally Posted by litwr View Post
With the help of ARM experts I have just improved my codes for the ARM's line drawing routine.
Showing ARM code here is a very good idea. Now we're talking on something concrete (even thouth it's still just a single, small example).


Quote:
Originally Posted by litwr View Post
It is only 88 bytes now! The 80386's routine takes 84. ARM code uses only one jump but 80386 and 68000 codes - 7.
Best is still 72 bytes, and i didn't make that much efforts to reduce it.


Quote:
Originally Posted by litwr View Post
So ARM has quite good code density when it is programmed properly.
Please do not draw generalities from a single example.


Quote:
Originally Posted by litwr View Post
It is also notable that one assembly line almost always corresponds one line in the C-source code. What a beauty!
There is no beauty for me in C code, and therefore no beauty to whatever corresponds to it.


Quote:
Originally Posted by litwr View Post
BTW I have tested this code with my Raspberry Pi so it is 100% correct.
Seems we just have to trust you on this, hmm ?


Quote:
Originally Posted by litwr View Post
I have checked the 386 code and without timer support it can be less than 180 bytes. BTW I have published the code for 80286 by a mistake, the fair code for 386 is less than 386 bytes.
This means timer support would be more than half the code, quite irrealistic.
And that's a claim without proof. You're quite fast saying that for others, but you do the same now :/


Quote:
Originally Posted by litwr View Post
English is very tough. IMHO nobody knows it perfectly even the native speakers!
For me English is too simple, imprecise language. In short, not the right tool - but what else can we do.


Quote:
Originally Posted by litwr View Post
With help I have made other improvements to ARM code - it is only 80 bytes now - it is less than the code for 80386 and close to size size of 68000 codes (72 bytes)!
Come on, more efforts on the "true" 80-byte version (2 insns to remove) and it could equal the 68k version
Could you please post the 80386 code here as well ?
meynaf is offline  
Old 29 October 2018, 16:00   #590
Megol
Registered User
 
Megol's Avatar
 
Join Date: May 2014
Location: inside the emulator
Posts: 377
Quote:
Originally Posted by grond View Post
Well, ldm, stm, mul and divs all do well with microcode. Not much but not nothing either. Thanks God or rather Sophie Wilson that they did use microcode and not insist on the programmer using a bunch of primitive instructions to implement these instructions in macrocode...
DIVS? ARM added integer division after 2010 IIRC, don't think microcode is involved.

Quote:
I think MIPS and also the earlier SPARC required the programmer to use a sequence of shift-add/subtract instructions in order to make multiplications and divisions.
MIPS used an ugly hack for integer multiplication as it didn't fit into the ordinary pipeline but it was there. SPARC used the FPU IIRC which wasn't too unusual at the time or even now (for integer division).
Megol is offline  
Old 29 October 2018, 16:20   #591
plasmab
Banned
 
plasmab's Avatar
 
Join Date: Sep 2016
Location: UK
Posts: 2,917
Quote:
Originally Posted by Megol View Post
DIVS? ARM added integer division after 2010 IIRC, don't think microcode is involved.

Ah yes. ARMv1 doesn’t even have a MUL. ARMv2 got MUL but it’s 16x16=32 bit only.

Some assemblers take DIVS as a mnemonic but they emit 10 or so instructions.
plasmab is offline  
Old 29 October 2018, 16:23   #592
grond
Registered User
 
Join Date: Jun 2015
Location: Germany
Posts: 1,918
Quote:
Originally Posted by Megol View Post
DIVS? ARM added integer division after 2010 IIRC, don't think microcode is involved.
Yes, your are right.


Quote:
SPARC used the FPU IIRC which wasn't too unusual at the time or even now (for integer division).
No, here you are wrong. I just looked it up. SPARC had the "MULScc" instructions which -- contrary to what its name seems to imply -- does not do a whole multiplication but just a single step in (IIRC) a shift-add multiplication. The mnemonic "MULS" stands for "MULtiply-Step". This instruction has been superseded by SMUL and UMUL instructions, of course.

https://docs.oracle.com/cd/E19120-01...172/index.html
grond is offline  
Old 30 October 2018, 10:29   #593
zero
Registered User
 
Join Date: Jun 2016
Location: UK
Posts: 428
I was impressed by how powerful the Archimedes machines were. The BASIC interpreter was damn fast, and if you got into C/assembler the chunky screen mode was very fast for stuff like line/polygon drawing.

Where it tended to suck was stuff like scrolling.
zero is offline  
Old 30 October 2018, 15:25   #594
Megol
Registered User
 
Megol's Avatar
 
Join Date: May 2014
Location: inside the emulator
Posts: 377
Quote:
Originally Posted by grond View Post
No, here you are wrong. I just looked it up. SPARC had the "MULScc" instructions which -- contrary to what its name seems to imply -- does not do a whole multiplication but just a single step in (IIRC) a shift-add multiplication. The mnemonic "MULS" stands for "MULtiply-Step". This instruction has been superseded by SMUL and UMUL instructions, of course.
Thanks for the correction. That's an ugly instruction for something intended to be a Scalable Processor ArchiteCture.

Quote:
Originally Posted by zero View Post
I was impressed by how powerful the Archimedes machines were. The BASIC interpreter was damn fast, and if you got into C/assembler the chunky screen mode was very fast for stuff like line/polygon drawing.

Where it tended to suck was stuff like scrolling.
Vertical scrolling is supported directly, horizontal can be done by manipulating borders.

Last edited by Megol; 30 October 2018 at 15:43.
Megol is offline  
Old 30 October 2018, 16:35   #595
roondar
Registered User
 
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,411
The lack of scrolling prowess for the Acorn with it's ARM2 (as well as machines using 68030's, 386's etc) has always caused me some wonder. These processors should be plenty fast enough to do the whole thing in software and still easily make a 50/60Hz update rate.

A quick back-of-the-envelope calculation suggests that the ARM2@8MHz should be able to smoothly scroll a 320x256, 256 colour screen using no more than about 50% of the CPU time it has. That still leaves quite a bit of bandwidth/CPU power for softsprites, game/demo logic and the like.

Perhaps it has more to do with the interface into graphics memory?
roondar is offline  
Old 30 October 2018, 17:08   #596
plasmab
Banned
 
plasmab's Avatar
 
Join Date: Sep 2016
Location: UK
Posts: 2,917
68k details

Quote:
Originally Posted by roondar View Post
The lack of scrolling prowess for the Acorn with it's ARM2 (as well as machines using 68030's, 386's etc) has always caused me some wonder. These processors should be plenty fast enough to do the whole thing in software and still easily make a 50/60Hz update rate.

A quick back-of-the-envelope calculation suggests that the ARM2@8MHz should be able to smoothly scroll a 320x256, 256 colour screen using no more than about 50% of the CPU time it has. That still leaves quite a bit of bandwidth/CPU power for softsprites, game/demo logic and the like.

The ARMv2 is plenty fast enough to update every frame.. and the barrel shifter makes pixel level scrolling free. see axis as an example game. Amiga coders want hardware way to do it. They don’t like to use their brain.

EDIT: you can preload the MEMC video DMA register ahead of time so it latches on vsync. That’s free veritical scrolling. IIRC You can even poke the VIDC start window regs to get 2 pixel res horizontal scrolling for free.

Yes.. 2 pixel res scrolling.

http://chrisacorns.computinghistory...._Datasheet.pdf

Last edited by plasmab; 30 October 2018 at 17:23.
plasmab is offline  
Old 30 October 2018, 17:30   #597
roondar
Registered User
 
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,411
Quote:
Originally Posted by plasmab View Post
The ARMv2 is plenty fast enough to update every frame.. and the barrel shifter makes pixel level scrolling free. see axis as an example game.
As I thought then, it can be done.

Quote:
Amiga coders want hardware way to do it. They don’t like to use their brain.
roondar is offline  
Old 31 October 2018, 12:14   #598
grond
Registered User
 
Join Date: Jun 2015
Location: Germany
Posts: 1,918
If the CPU does the scrolling, you need the required mem bandwidth to a) read the screen data, b) write it back and then c) read it through video DMA. If the video hardware can scroll by itself, you only need c). Three times less memory impact, I still think the Amiga way is quite clever.
grond is offline  
Old 31 October 2018, 12:18   #599
plasmab
Banned
 
plasmab's Avatar
 
Join Date: Sep 2016
Location: UK
Posts: 2,917
Quote:
Originally Posted by grond View Post
If the CPU does the scrolling, you need the required mem bandwidth to a) read the screen data, b) write it back and then c) read it through video DMA. If the video hardware can scroll by itself, you only need c). Three times less memory impact, I still think the Amiga way is quite clever.


You still need a write the buffer in the first place though. You do the shift as you create the scene. You don’t render, read, shift, write. Like I say... if you use your brain up front the result is the same.

The Amiga way just means you don’t have to think.
plasmab is offline  
Old 31 October 2018, 12:50   #600
tolkien
AmigaMan
 
tolkien's Avatar
 
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 760
So all amiga custom chips are not usefull and we should use only the cpu power to do all kind of things.
tolkien is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Any software to see technical OS details? necronom support.Other 3 02 April 2016 12:05
2-star rarity details? stet HOL suggestions and feedback 0 14 December 2015 05:24
EAB's FTP details... Basquemactee1 project.Amiga File Server 2 30 October 2013 22:54
req details for sdl turrican3 request.Other 0 20 April 2008 22:06
Forum Details BippyM request.Other 0 15 May 2006 00:56

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 16:43.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.13901 seconds with 16 queries