02 September 2010, 11:19 | #141 | |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
Quote:
Code:
include intuition/screens.i ; open screen ... lea sc_ViewPort(a0),a1 It isn't. If you don't understand how to use LoadRGB32 I don't think you'll understand how to deal with colorbanks etc. either which is required if you want to set a Palette directly. Last edited by StingRay; 02 September 2010 at 11:35. |
|
02 September 2010, 12:03 | #142 |
gone
Join Date: Apr 2007
Location: completely gone
Posts: 1,596
|
I must admit that in some ways I agree with AlfaRomeo in that, with a lack of understanding of C code, I sometimes struggle to understand how to "use" system library functions with asm. Yeah, I know, probably me just being dumb but hey, them's the breaks.
Is there a way to "read" the library docs that I'm missing that makes asm calls to library routines more understandable...? |
02 September 2010, 12:28 | #143 | |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
Quote:
Besides, in my opinion, you don't learn coding if you always give up when a problem arises. But maybe I'm old-fashioned here. |
|
02 September 2010, 12:35 | #144 | |||
gone
Join Date: Apr 2007
Location: completely gone
Posts: 1,596
|
Quote:
Quote:
Quote:
Overcoming the obstacles is where the learning is in my experience. When I think about something for ages and ages none of that time's wasted when the "oh, I get it!" moment finally comes... |
|||
02 September 2010, 13:02 | #145 | |
68k
Join Date: Sep 2005
Location: Somewhere
Posts: 829
|
Quote:
First I'm trying to simplify my problem. I have also problem with LoadRGB32 function. I started with one color till I figured out how set it in proper way ( started from black color then trying with white and so on... ). Then I'm trying to extend amount of colors. When I'm stuck then I usually compile C example and resource it . If I still stuck then I check all source codes which I have and trying to find solution. And the last If everything fails then I put my question on EAB Regards Last edited by Asman; 02 September 2010 at 13:52. Reason: correct typo |
|
02 September 2010, 13:33 | #146 |
A1200 040 SAM440EP 667
Join Date: Jan 2008
Location: Lisbon / Portugal
Posts: 873
|
First thanks for the help with ViewPort
I tried to make a table with colors but as I had no glue on how to find ViewPort I did not tried the routine because I have no way to see the colors. Now I see nosense in that routine. |
02 September 2010, 13:39 | #147 | |
A1200 040 SAM440EP 667
Join Date: Jan 2008
Location: Lisbon / Portugal
Posts: 873
|
Quote:
Thanks again |
|
02 September 2010, 13:46 | #148 |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
Be honest, the reason why you see no sense in the routine is because you didn't write it. The routine is fine btw! Try to understand what it does (like: which format has the input palette?) and don't just copy routines from someone else. That's not how you learn coding.
|
02 September 2010, 17:12 | #149 | |
A1200 040 SAM440EP 667
Join Date: Jan 2008
Location: Lisbon / Portugal
Posts: 873
|
Quote:
On the net there are no examples and I do not understand why a beginner has to learn the more arduous way, why who has the knowledge can´t help, why the begginer must to invent the wheel again. It seems that because people had to spend a long time to learn think the begginers will have to go through the same now. Usually the amiga coders learned when they were younger and had enough time, the same does not happen now because almost all of us have 30/40 years old, have family and work. I also learned Z80 assembler when I was younger with only one book of about 150 pages but now I could not do it again on Amiga because now I don´t have the time I spent in the early days to learn how to program Amiga. What I see is that those who tried to learn Amiga assembler in recent years had given up for failure time and the same goes with me. If I'm in the middle of an assembler problem but, for lack of time, do not finish it when I return to the same problem 15 days past I have to start from the beginning because I do not remember where was and how I got there. If a friend of yours ask you for help to learn how to code with objective questions what do you do? I don´t want anybody to give me the fish, only they help me to learn how to fishing Last edited by AlfaRomeo; 02 September 2010 at 21:37. |
|
02 September 2010, 22:54 | #150 | |
AMOS Extensions Developer
Join Date: Jun 2007
Location: near Cambridge, UK
Age: 44
Posts: 1,924
|
Quote:
My boss used to work with Paul Overaa. I know Paul has written a few books, but that's about it. Is he what we might call a coding god? Did he code anything worth playing/watching? Regards, Lonewolf10 |
|
03 September 2010, 00:06 | #151 |
AMOS Extensions Developer
Join Date: Jun 2007
Location: near Cambridge, UK
Age: 44
Posts: 1,924
|
Ok, just finished this thread from start to finish! I learnt ASM a couple of years ago from examining code and from the book "Amiga Machine Language: A practical guide to learning 68000 assembly language on the Amiga" published by Abacus. It does a decent job of teaching ASM, with OS friendly routines. I did learn a few tips and tricks from this thread though As regarding the HRM (Hardware Reference Manual), I am lucky enough to have paper editions of various Amiga RKRM's (Rom Kernel Reference Manual)/HRM's (1985 and 1989 editions) Unless you are the lucky owner of an Amiga Developer CD, or paper versions of the Amiga RKM's/HRM's, you may find this site useful: http://amigadev.elowar.com/ Regards, Lonewolf10 |
03 September 2010, 02:21 | #152 | |||||
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
Quote:
Quote:
Quote:
Quote:
It's the same with coding, remember, skill comes with practice! Quote:
That's the right mindset! |
|||||
03 September 2010, 02:30 | #153 |
A1200 040 SAM440EP 667
Join Date: Jan 2008
Location: Lisbon / Portugal
Posts: 873
|
@Lonewolf10
That site it´s very useful, I already know it. Anyway what I miss it´s AGA examples because most of examples on the net are for ECS. Usualy, they aren´t OS friendly, instead they bang the hardware directly. Even the book you mension, despite it´s still very useful to do the 1st steps, the code inside it´s for AOS 1.2 and older machines. |
03 September 2010, 08:43 | #154 | ||
gone
Join Date: Apr 2007
Location: completely gone
Posts: 1,596
|
Quote:
Quote:
That mindset is, for me, the key to asm coding. |
||
03 September 2010, 13:34 | #155 |
A1200 040 SAM440EP 667
Join Date: Jan 2008
Location: Lisbon / Portugal
Posts: 873
|
@StingRay
@pmc I know you are right but I think there is some misunderstood. I started with small things, like accompanying the "Amiga Machine Language" book from abacus, but when I reached the section in that I had to open a screen the example code from book would not work because it was too old, so I work to see how to opened a screen but since I was working on AGA I preferred to begin to understand how to do it in AGA. Despite having opened a 256 color screen, only 2 colors are present and this led me to try to understand the color banks, so StingRay told me to use LoadRGB32() but as I only found 1 example on how to use it in asm and first must had a palette I copied the routine to generate the table with the palette. My only intention was to expedite the process of creating a palette instead of making a table with 256 * 3 long word values for RRGGBB at hand. All this because I do not have much time and wanted to understand how to use the function LoadRGB32 instead of spending the time to create a table with a palette. So as you can see, when we have interest, a small step leads to a biggg steps Anyway thanks for your help P.S I'm already creating a color table, I go now the tenth color Last edited by AlfaRomeo; 03 September 2010 at 13:42. |
03 September 2010, 20:13 | #156 |
AMOS Extensions Developer
Join Date: Jun 2007
Location: near Cambridge, UK
Age: 44
Posts: 1,924
|
@AlfaRomeo
Well, I have never really used AGA machines. I don't have a keyboard or other devices for my Amiga CD32, so that only gets used for games. I own 2 Amiga 600's which I use and have learned to love, plus I am happy with OS2.0. Either way, the book is a pretty good start for ASM programming. Can anyone recommend anything better, or as easy to pick up? Regards, Lonewolf10 |
03 September 2010, 20:25 | #157 | |
gone
Join Date: Apr 2007
Location: completely gone
Posts: 1,596
|
Quote:
http://www.abebooks.co.uk/products/isbn/9780672224058 and it's more advanced companion, more expensive but also great in my opinion: http://www.abebooks.co.uk/products/isbn/9780672225444 Those plus the HRM and you should be well away. |
|
03 September 2010, 21:45 | #158 |
AMOS Extensions Developer
Join Date: Jun 2007
Location: near Cambridge, UK
Age: 44
Posts: 1,924
|
Thanks, I'll check them out tonight
Regards, Lonewolf10 |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Downfall - diary of a game... | Graham Humphrey | Amiga scene | 505 | 15 March 2015 19:26 |
Uridium 2 : Diary of a Game | silkworm | Amiga scene | 15 | 09 August 2011 09:00 |
19 Part One - Boot Camp | Retro-Nerd | project.aGTW | 2 | 19 February 2008 22:11 |
Help....what is this part 2? | Dizzy | Retrogaming General Discussion | 7 | 05 June 2007 15:27 |
|
|