English Amiga Board


Go Back   English Amiga Board > Search Forums

Showing results 1 to 40 of 966
Search took 0.11 seconds.
Search: Posts Made By: Thomas Richter
Forum: Coders. General Yesterday, 10:55
Replies: 14
Views: 394
Posted By Thomas Richter
I'm sorry. Do you or don't you allocate bitmaps...

I'm sorry. Do you or don't you allocate bitmaps yourself? You shouldn't, because AllocScreenBuffer() does this for you.


No, you don't worry about FMODE. That is the system to care about.


...
Forum: Coders. General 28 February 2021, 23:01
Replies: 14
Views: 394
Posted By Thomas Richter
You are confused. BMF_DISPLAYABLE is for...

You are confused. BMF_DISPLAYABLE is for displayable bitmaps. But the screen does not display your bitmaps. It displays its own bitmaps, namely screen->RastPort.Bitmap. All you need is a friend...
Forum: Coders. General 28 February 2021, 16:17
Replies: 14
Views: 394
Posted By Thomas Richter
Screen bitmaps are allocated with all system...

Screen bitmaps are allocated with all system limitations in mind, so may I ask why you allocate bitmaps yourself?



Ehem. The "framebuffers" you find in Screen->RastPort.Bitmap. No need to...
Forum: request.Apps 26 February 2021, 15:52
Replies: 6
Views: 266
Posted By Thomas Richter
SYS:System/FixFonts?

SYS:System/FixFonts?
Forum: Coders. Asm / Hardware 23 February 2021, 19:47
Replies: 1,089
Views: 60,829
Posted By Thomas Richter
That's not the point. The point is that...

That's not the point. The point is that instuctions such as

if (a=b) { }

are a common case, and the rest follows from the orthogonality requirement.



It only means that you cannot...
Forum: Coders. Asm / Hardware 23 February 2021, 19:14
Replies: 1,089
Views: 60,829
Posted By Thomas Richter
The free opcodes had been used by a variety of...

The free opcodes had been used by a variety of options, such as the 65C02.



Because you branch on flags, that's their purpose. And you have Scc if you need to transfer a particular condition...
Forum: Coders. System 23 February 2021, 09:28
Replies: 53
Views: 1,693
Posted By Thomas Richter
Nope. Masks bits incorrectly and will accept hunk...

Nope. Masks bits incorrectly and will accept hunk types that aren't proper, and does not handle overlays, which do exist, in particular under 1.3.
Forum: Coders. System 22 February 2021, 22:00
Replies: 53
Views: 1,693
Posted By Thomas Richter
Correct, you cannot run a code that was designed...

Correct, you cannot run a code that was designed and written for >2.04 in mind on a 1.3 system. If you want to run such code, get 2.04.


I wonder why that surprises you.



And my answer is...
Forum: Coders. Asm / Hardware 22 February 2021, 21:32
Replies: 1,089
Views: 60,829
Posted By Thomas Richter
That would be another design, though remember...

That would be another design, though remember that upon interrupts, both must be saved and restored jointly.



No. It is the consequence of indequately upscaling a 16-bit architecture to a...
Forum: Coders. System 21 February 2021, 21:33
Replies: 53
Views: 1,693
Posted By Thomas Richter
Ehem. I just tested, with the v37 ROM. Yes, it...

Ehem. I just tested, with the v37 ROM. Yes, it does. Note, however, that 0x3f7 is actually not the correct hunk number. It should be 0x3fc, and *that* does not work. This is by error, and v39...
Forum: Coders. System 21 February 2021, 14:51
Replies: 53
Views: 1,693
Posted By Thomas Richter
I don't see how this could work. loadseg under...

I don't see how this could work. loadseg under 1.3 releases the segments if a hunk-end is not seen, it has a flag value for it. 3.1 forgot to set a secondary result code there, in 3.2 you'll get a...
Forum: Coders. System 21 February 2021, 12:57
Replies: 53
Views: 1,693
Posted By Thomas Richter
Unfortunately, if the hunk binary comes from...

Unfortunately, if the hunk binary comes from memory, LoadSeg() does not provide a solution under 1.3 and before (it does not go through the buffered I/O functions). You can loadseg from an open...
Forum: Coders. System 21 February 2021, 12:07
Replies: 53
Views: 1,693
Posted By Thomas Richter
Does the data come from file? Then LoadSeg() is...

Does the data come from file? Then LoadSeg() is the solution. If the data comes from memory, then InternalLoadSeg() is the right solution. Beware, however, that you cannot load overlays from memory...
Forum: Coders. System 21 February 2021, 11:53
Replies: 53
Views: 1,693
Posted By Thomas Richter
If loading a binary to memory and performing the...

If loading a binary to memory and performing the relocation is the problem, then LoadSeg() is the solution. Actually, it doesn't strictly speaking. It works, but under the wrong hunk number....
Forum: Coders. System 20 February 2021, 23:54
Replies: 53
Views: 1,693
Posted By Thomas Richter
LoadSeg() *is* the general solution - for loading...

LoadSeg() *is* the general solution - for loading segments at least (not for other operations on hunks, of course). Name a program that is supposed to run on 1.3 and uses HUNK_RELOC32SHORT. Chances...
Forum: Coders. System 20 February 2021, 23:11
Replies: 53
Views: 1,693
Posted By Thomas Richter
Just a quick look at it - I'm sorry, but no. No...

Just a quick look at it - I'm sorry, but no. No overlay support, and it does not accept both equivalent hunk types for RELOC32SHORT. Once again - if there is a system function which does what you...
Forum: Coders. System 20 February 2021, 22:55
Replies: 53
Views: 1,693
Posted By Thomas Richter
LoadSeg, of course, if your goal is to load a...

LoadSeg, of course, if your goal is to load a binary into memory. There isn't really much that changed. The only hunk that came into v37 is HUNK_RELOC32SHORT, but that's rarely used. The SAS/C...
Forum: Coders. System 20 February 2021, 18:01
Replies: 53
Views: 1,693
Posted By Thomas Richter
I'm not selling anything, and I'm not developing...

I'm not selling anything, and I'm not developing anything of it. It seems you seem to advocate another source "because it's assembler". However, leaving language issues all aside, the more important...
Forum: Coders. System 20 February 2021, 15:06
Replies: 53
Views: 1,693
Posted By Thomas Richter
Guess what. The dos.library InternalLoadSeg() /...

Guess what. The dos.library InternalLoadSeg() / LoadSeg() is also assembler (since v37, before it was BCPL), and it even uses buffering to limit the number of Read() calls. (-;
Forum: Coders. System 20 February 2021, 14:30
Replies: 53
Views: 1,693
Posted By Thomas Richter
Yes, or that: http://aminet.net/dev/misc/Hunk.lha

Yes, or that: http://aminet.net/dev/misc/Hunk.lha
Forum: Coders. System 20 February 2021, 14:00
Replies: 53
Views: 1,693
Posted By Thomas Richter
Once again: What exactly are you trying to...

Once again: What exactly are you trying to achieve? You may not know, but LoadSeg() has a customizable cousin, InternalLoadSeg(), so you can make it load from memory, or from an RDSK block, or...
Forum: support.Other 20 February 2021, 13:39
Replies: 5
Views: 345
Posted By Thomas Richter
Tick detection hasn't changed between 3.1 and...

Tick detection hasn't changed between 3.1 and 3.1.4, and 3.1.4 and 3.1.4.1, but the code has been recompiled with a later compiler, so the timing might be slightly different.

So this is what is...
Forum: Coders. System 20 February 2021, 13:13
Replies: 17
Views: 1,408
Posted By Thomas Richter
Every other Os component has a flat hierarchy -...

Every other Os component has a flat hierarchy - all files in one directory, and one make file. If an Os component becomes so big that its sources cannot be logically arranged in one directory, the...
Forum: Coders. C/C++ 19 February 2021, 21:19
Replies: 23
Views: 974
Posted By Thomas Richter
In this particular example, it is not "pure...

In this particular example, it is not "pure luck". The graphics user copper lists use a self-extending data structure, so whenever more copper instructions are needed, graphics extends the structure...
Forum: Coders. Asm / Hardware 19 February 2021, 21:13
Replies: 10
Views: 684
Posted By Thomas Richter
You don't need a division. As posted earlier, y =...

You don't need a division. As posted earlier, y = ((x << 4) - x + d) >> 8 for all 8 bit numbers. Try to proof this (Hint: Neumann series).
Forum: Coders. C/C++ 19 February 2021, 11:41
Replies: 14
Views: 1,439
Posted By Thomas Richter
Note that the task name is the program name as...

Note that the task name is the program name as you start it on the shell, case sensitive, potentially with the full path upfront. Thus, if you start your program as "Foo:Bar/bla", the TASKNAME should...
Forum: Coders. System 18 February 2021, 19:51
Replies: 8
Views: 343
Posted By Thomas Richter
The typical solution to that problem is to use an...

The typical solution to that problem is to use an ASL screen mode requester, probably both to select a mode, and to setup a default mode for the program configuration that ends up in the tool types....
Forum: Coders. Asm / Hardware 18 February 2021, 15:26
Replies: 9
Views: 552
Posted By Thomas Richter
Err, if you setup the blitter control blits, it...

Err, if you setup the blitter control blits, it can draw lines in all of the 8 possible octants. Or use graphics/Draw(), which does all the computation for you.
Forum: Coders. System 18 February 2021, 15:25
Replies: 8
Views: 343
Posted By Thomas Richter
If you mean "monitor", you do mean the name of...

If you mean "monitor", you do mean the name of the icon in DEVS:Monitors? Unfortunately, you cannot in general predict which IDs the monitor icon will generate, and as the user can rename the icon as...
Forum: Coders. System 18 February 2021, 08:55
Replies: 8
Views: 343
Posted By Thomas Richter
My concern is that the monitor name is rarely...

My concern is that the monitor name is rarely useful, i.e. it is not shown in an ASL requester, and it is not necessarily the name of the icon in DEVS:Monitors. The later can be changed by the user...
Forum: Coders. System 17 February 2021, 20:32
Replies: 8
Views: 343
Posted By Thomas Richter
For that, traverse the display info data base...

For that, traverse the display info data base with GetDisplayInfoData() (see its documentation), and check for the struct NameInfo (see graphics/displayinfo.h), i.e. DTAG_NAME for the mode name, or...
Forum: Coders. Asm / Hardware 16 February 2021, 13:48
Replies: 1,089
Views: 60,829
Posted By Thomas Richter
Also, I find this quite interesting: ...

Also, I find this quite interesting:

https://allaboutprocessors.blogspot.com/2009/03/intels-80286.html

I guess I can only agree with Bill Gates here. Brain-dead processor. Two modes, but can...
Forum: Coders. Asm / Hardware 16 February 2021, 13:35
Replies: 1,089
Views: 60,829
Posted By Thomas Richter
Another attempt at an apples to oranges...

Another attempt at an apples to oranges comparison. The 80286 has several forms of MUL, 8x8->16, and 16x16->32. The 8x8->16 takes 13 cycles for register, 16 for memory, the comparable 16x16->32 takes...
Forum: Coders. Asm / Hardware 15 February 2021, 18:44
Replies: 1,089
Views: 60,829
Posted By Thomas Richter
Then you don't know much. The following code is...

Then you don't know much. The following code is not so uncommon, and allows a clear carry-over to 68K code:



if ((a = b) >= 0) {...}



would compile to a single move, followed by a "blt.s"...
Forum: Coders. Asm / Hardware 15 February 2021, 18:15
Replies: 1,089
Views: 60,829
Posted By Thomas Richter
I wonder why you believe that big-endia order is...

I wonder why you believe that big-endia order is "contrieved". Otherwise, we would have the year 1202, and not 2021. It is one of two possible conventions, and that's all about it. Big-endian means...
Forum: Coders. General 14 February 2021, 13:54
Replies: 76
Views: 5,030
Posted By Thomas Richter
Which didn't really matter that much back then....

Which didn't really matter that much back then. RAM was a major limitation, and there was hardly enough RAM for a single program back then. It became a limitation a couple of years later.



Yes,...
Forum: Coders. Asm / Hardware 14 February 2021, 12:15
Replies: 1,089
Views: 60,829
Posted By Thomas Richter
While I cannot speak for Motorola, I still have a...

While I cannot speak for Motorola, I still have a guess. This is probably designed with code generators of some higher programming languages in mind, like C. There, the language expects/assumes that...
Forum: Coders. System 13 February 2021, 18:55
Replies: 53
Views: 1,693
Posted By Thomas Richter
I'm sorry - what don't you want to do? Read a...

I'm sorry - what don't you want to do? Read a book? Why not? What is the problem you want to solve? The only thing the Bantam manual does not state is that the scatter loader supports both 1015 and...
Forum: Coders. Asm / Hardware 13 February 2021, 15:05
Replies: 1,089
Views: 60,829
Posted By Thomas Richter
Be a bit careful with these numbers. It really...

Be a bit careful with these numbers. It really depends a lot on how you compile, with which options, and which compiler. For example, the gcc on x86 performs a lot of loop unrolling, which adds for...
Forum: Coders. System 13 February 2021, 15:01
Replies: 10
Views: 825
Posted By Thomas Richter
As if 3% would make any difference... The 3% come...

As if 3% would make any difference... The 3% come likely from more processing by the input.device, or in particular the intuition input handler, and the commodities input handler if you have any...
Showing results 1 to 40 of 966

 
Forum Jump

All times are GMT +2. The time now is 07:41.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.
Page generated in 0.13478 seconds with 10 queries