English Amiga Board


Go Back   English Amiga Board > Search Forums

Showing results 1 to 40 of 1101
Search took 0.10 seconds.
Search: Posts Made By: Thomas Richter
Forum: Coders. Asm / Hardware 07 May 2021, 19:29
Replies: 5
Views: 410
Posted By Thomas Richter
Coroutines aren't hard, there is just a lot of...

Coroutines aren't hard, there is just a lot of high-level mumble-jumble around it in some high level languages. There isn't really much required to get them working:

/*
** The following structure...
Forum: Coders. General 06 May 2021, 21:45
Replies: 77
Views: 4,019
Posted By Thomas Richter
Not in specific, but the general trick is to find...

Not in specific, but the general trick is to find an exponent T such that 2^T + 1 is divisible by 5, i.e. u * 5 = 2^T + 1.


Then ( x * u * 5 - x ) = (x * (2^T + 1) - x ) = 2^T, thus x * u = x / 5...
Forum: Coders. General 06 May 2021, 07:59
Replies: 77
Views: 4,019
Posted By Thomas Richter
Actually, I'm doing a lot of signal processing...

Actually, I'm doing a lot of signal processing here in my day job, and what I learned is: Regardless what the CPU is, avoid divisions. You typically replace them by a multiplication by a pre-shifted...
Forum: Coders. General 06 May 2021, 07:56
Replies: 77
Views: 4,019
Posted By Thomas Richter
Well, in your case, the division is just a very...

Well, in your case, the division is just a very minor ingredient in the overall running time and other code parts dominate, thus I'm not sure you would be able to see much of a difference from this...
Forum: Coders. Asm / Hardware 06 May 2021, 07:53
Replies: 5
Views: 410
Posted By Thomas Richter
Well, in this case it's quite simple: Wait for...

Well, in this case it's quite simple: Wait for the LF = 0x0a to arrive, then parse the entire line. Or disassemble line by line, increasing the start of the disassembly each time again.


The...
Forum: Coders. Asm / Hardware 05 May 2021, 20:44
Replies: 5
Views: 410
Posted By Thomas Richter
Sorry, I do not quite understand.... what...

Sorry, I do not quite understand.... what precisely is the problem?
Forum: Coders. Asm / Hardware 05 May 2021, 15:11
Replies: 92
Views: 2,983
Posted By Thomas Richter
Thank you!

Thank you!
Forum: Coders. Asm / Hardware 05 May 2021, 14:23
Replies: 14
Views: 409
Posted By Thomas Richter
As far as the outcome goes, there is no...

As far as the outcome goes, there is no difference, result is the same. Actually, it is "MOVEA.L #label,a0" in your example, though the assembler silently fixed this for you. The difference between...
Forum: Coders. Asm / Hardware 05 May 2021, 11:55
Replies: 92
Views: 2,983
Posted By Thomas Richter
The point is a different one, really. The point...

The point is a different one, really. The point is "understanding the interface" and the difference between that and an implementation. The interface towards AGA is the software interface by the Os....
Forum: Coders. Asm / Hardware 05 May 2021, 11:51
Replies: 92
Views: 2,983
Posted By Thomas Richter
Any chance to share them? I'm asking, because...

Any chance to share them? I'm asking, because even Os developers don't have such specification - and in fact, I'm not even aware that such a document exists.
Forum: Coders. Asm / Hardware 04 May 2021, 17:09
Replies: 92
Views: 2,983
Posted By Thomas Richter
Once again: No, and no again. All...

Once again: No, and no again.




All I know is what I need to do to get it right, and that's "not do it myself". I do not know the alignment by heart, and I know it depends on conditions that...
Forum: Coders. Asm / Hardware 04 May 2021, 15:53
Replies: 92
Views: 2,983
Posted By Thomas Richter
Hold on. You mix up here a couple of things. If a...

Hold on. You mix up here a couple of things. If a system is patched-up to non-working, then this is the effect of lazy programming, the sole start of all-evil. By patching the system incompetently,...
Forum: Coders. Asm / Hardware 04 May 2021, 15:45
Replies: 92
Views: 2,983
Posted By Thomas Richter
So where is the "lying" part? This is all...

So where is the "lying" part? This is all "undocumented land". Well, you could argue that "nowadays, nothing is going to change". However, this is pretty much the attitude that prevented already in...
Forum: Coders. Asm / Hardware 04 May 2021, 15:39
Replies: 92
Views: 2,983
Posted By Thomas Richter
That intuition will re-install its view again, on...

That intuition will re-install its view again, on the next screen arrangement (C= M key, for example). Thus, LoadView(NULL) requires to wait until graphics loaded the NULL-view (one VBI), and at this...
Forum: Coders. System 04 May 2021, 13:59
Replies: 37
Views: 10,095
Posted By Thomas Richter
Precisely. The problem is that the string was...

Precisely. The problem is that the string was potentially allocated with just the right amount of bytes to keep it, and this way, you potentially overwrite memory beyond the allocated bounds.



...
Forum: Coders. Asm / Hardware 04 May 2021, 13:50
Replies: 92
Views: 2,983
Posted By Thomas Richter
Again: If you try to render your screen with...

Again: If you try to render your screen with LoadView(). Well, this may work, but then do it right. I gave you the approximate sequence of calls to make it work. If you assume that pushing a copper...
Forum: Coders. Asm / Hardware 04 May 2021, 13:43
Replies: 92
Views: 2,983
Posted By Thomas Richter
This is pretty much what the graphics library was...

This is pretty much what the graphics library was designed to be, and pretty much the reason for its problems today as well. Lack of proper abstraction. For example, the entire GELS/vpsrite engine is...
Forum: Coders. Asm / Hardware 04 May 2021, 13:41
Replies: 92
Views: 2,983
Posted By Thomas Richter
That's a true statement. The alignment...

That's a true statement. The alignment requirements for ECS and AGA are different, and also depend on the FMODE.



That's why graphics keeps such information.
Forum: Coders. Asm / Hardware 04 May 2021, 13:22
Replies: 92
Views: 2,983
Posted By Thomas Richter
It certainly causes a lot of problems such as: I...

It certainly causes a lot of problems such as: I cannot run games from the workbench, games crash with hits, games don't work with my graphics card and games don't work with my 68060. Please don't...
Forum: Coders. Asm / Hardware 04 May 2021, 13:07
Replies: 92
Views: 2,983
Posted By Thomas Richter
Please identify the "lie" thing. Thank...

Please identify the "lie" thing. Thank you.
Forum: Coders. Asm / Hardware 04 May 2021, 12:46
Replies: 92
Views: 2,983
Posted By Thomas Richter
If you don't like the answer, why ask? The answer...

If you don't like the answer, why ask? The answer is that there are conditions under which your proposal doesn't work. I state them.




The question is not "how difficult it is", but "how can...
Forum: Coders. Asm / Hardware 04 May 2021, 12:04
Replies: 92
Views: 2,983
Posted By Thomas Richter
So what's the motivation of this, frankly, absurd...

So what's the motivation of this, frankly, absurd programming practise? Saving memory isn't. It's less system friendly - that's the only thing - and that's rather a disadvantage.
Forum: Coders. Asm / Hardware 04 May 2021, 11:46
Replies: 92
Views: 2,983
Posted By Thomas Richter
Frankly, this is exactly the reason why it...

Frankly, this is exactly the reason why it *should* be used. The user set preferences, and adjusted the screen to fit on the monitor. With rolling everything on your own, including the copper list,...
Forum: Coders. Asm / Hardware 04 May 2021, 11:38
Replies: 92
Views: 2,983
Posted By Thomas Richter
Why does that make any difference? Once again,...

Why does that make any difference? Once again, you need the same amount of memory in either case. The bitmap has a certain size, and that costs a certain amount of memory. No matter who allocates...
Forum: Coders. System 04 May 2021, 09:16
Replies: 37
Views: 10,095
Posted By Thomas Richter
No, obviously not. Please take 5 minutes to think...

No, obviously not. Please take 5 minutes to think about why.
Forum: Coders. Asm / Hardware 04 May 2021, 08:48
Replies: 92
Views: 2,983
Posted By Thomas Richter
First of all, wrong approach. You let...

First of all, wrong approach. You let graphics/intuition do the allocation, and then use that memory for your graphics. I already said that there are alignment restrictions on bitmap memory that...
Forum: Coders. General 04 May 2021, 08:41
Replies: 77
Views: 4,019
Posted By Thomas Richter
That depends on the processor. On my 68060, the...

That depends on the processor. On my 68060, the time is (almost) constant, but the instruction is much quicker in the overflow case. The manual states so, it is 28 cycles, with a footnode saying that...
Forum: Coders. Asm / Hardware 03 May 2021, 21:18
Replies: 92
Views: 2,983
Posted By Thomas Richter
*Sigh* In case this was not clear to begin with:...

*Sigh* In case this was not clear to begin with: OpenScreen() and friends will allocate the same amount of chip ram for the bitmap than you would have to allocate, except that you have to do a lot...
Forum: Coders. Asm / Hardware 03 May 2021, 20:14
Replies: 92
Views: 2,983
Posted By Thomas Richter
I mean intuition...

I mean intuition OpenScreen()/OpenScreenTagList().



And the RAM for the bitmap falls from the sky if you use LoadView()? OpenScreenTagList(), the CloseWorkBench(), and you have the RAM back.
Forum: Amiga scene 03 May 2021, 20:09
Replies: 236
Views: 66,529
Posted By Thomas Richter
Sorry, I was imprecise. Greenhill C uses a...

Sorry, I was imprecise. Greenhill C uses a stack-based calling syntax, and thus requires the typical register ping-pong. However, consider you have something like:

struct Point {
WORD x,y;
}
...
Forum: Coders. Asm / Hardware 03 May 2021, 17:39
Replies: 92
Views: 2,983
Posted By Thomas Richter
Use a screen. Really. I'm serious. ...

Use a screen. Really. I'm serious.



For rolling a display yourself, you need a RasInfo, a ViewPort, a ColorMap, a View, and a ViewExtra. Then associatate the ViewExtra to the view, load...
Forum: Coders. System 03 May 2021, 17:29
Replies: 37
Views: 10,095
Posted By Thomas Richter
Do you understand the difference between an...

Do you understand the difference between an interface an an implementation? There is no documentation that BCPL strings are zero-terminated, or this specific string is zero-terminated. The only...
Forum: Coders. General 03 May 2021, 17:26
Replies: 77
Views: 4,019
Posted By Thomas Richter
Not really, they have the same amount of work to...

Not really, they have the same amount of work to do. Your average division algorithm creates the remainder as by-product anyhow. The typical division implementation is a 2nbits/nbits division.

...
Forum: Coders. Asm / Hardware 03 May 2021, 17:19
Replies: 92
Views: 2,983
Posted By Thomas Richter
You need the viewport for the copper lists, and...

You need the viewport for the copper lists, and you also need a ViewExtra for extended screen modes. But frankly, leave this low-level junk aside, and let intuition do the work for you. As soon as...
Forum: support.Other 03 May 2021, 13:07
Replies: 132
Views: 7,857
Posted By Thomas Richter
True, though I have seen similar issues on the...

True, though I have seen similar issues on the beta of the ZZ9000 driver, and there the issue was that the driver did not update some internals of the boardinfo structure. With screen dragging...
Forum: support.Other 03 May 2021, 12:04
Replies: 132
Views: 7,857
Posted By Thomas Richter
For all hardware drivers, clicking on the topmost...

For all hardware drivers, clicking on the topmost screen works and delivers the mouse click at the right position, I ensured that. This is likely a defect in the winUAE driver which I do not...
Forum: Amiga scene 02 May 2021, 17:01
Replies: 236
Views: 66,529
Posted By Thomas Richter
As already said, you cannot build from this leak,...

As already said, you cannot build from this leak, it doesn't compile. Intuition is one problem, graphics is another, and the build system yet another. For 3.1.4, it took about 6 months to get a...
Forum: Coders. System 02 May 2021, 16:06
Replies: 37
Views: 10,095
Posted By Thomas Richter
On 1.3, this is probably only a coincidence as...

On 1.3, this is probably only a coincidence as the name is put into MEMF_CLEAR memory. However, for some ( improper) name lengths, this is not true. The interface doesn't define it to be...
Forum: Amiga scene 02 May 2021, 13:00
Replies: 236
Views: 66,529
Posted By Thomas Richter
The 3.1 built, yes, but not the 3.1.4 built. This...

The 3.1 built, yes, but not the 3.1.4 built. This was all part of the problem getting the Os into a compilable shape again.
Forum: Amiga scene 02 May 2021, 12:58
Replies: 236
Views: 66,529
Posted By Thomas Richter
Not exactly. It's not the int size that makes...

Not exactly. It's not the int size that makes intuition special, it is the calling syntax. Greenhill C passes short structures (smaller than 4 bytes) in registers instead of copying them, and in some...
Showing results 1 to 40 of 1101

 
Forum Jump

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


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