English Amiga Board


Go Back   English Amiga Board > Search Forums

Showing results 1 to 40 of 4395
Search took 0.42 seconds.
Search: Posts Made By: meynaf
Forum: Coders. Asm / Hardware 01 December 2021, 11:09
Replies: 8
Views: 710
Posted By meynaf
The code on the wiki page looks correct. It's...

The code on the wiki page looks correct. It's regular Motorola syntax, not gcc.
Forum: support.AmigaOS 27 November 2021, 17:18
Replies: 2
Views: 294
Posted By meynaf
It may be that the software that does the...

It may be that the software that does the measurement itself takes important amount of cpu.
As input.device is the context GUI is normally handled, as long as you need to draw something -- it will...
Forum: Coders. Asm / Hardware 22 November 2021, 12:02
Replies: 23
Views: 1,484
Posted By meynaf
IF the game does not make use of extra computing...

IF the game does not make use of extra computing power that accelerated machines have (i.e. pure 68000 speed is always enough) then you might be better off by turning caches off at startup, before...
Forum: Coders. General 19 November 2021, 18:42
Replies: 323
Views: 24,654
Posted By meynaf
I suppose you could do this. Like C standard...

I suppose you could do this. Like C standard string formatting uses "%%" to represent "%" character.
But, don't standard ANSI sequences have a way to represent ESC key itself ?
If the answer is...
Forum: Coders. General 19 November 2021, 08:46
Replies: 323
Views: 24,654
Posted By meynaf
No it is not complete. It is just "disk"...

No it is not complete. It is just "disk" operating system. And not a Windows clone either as it does not provide a GUI system (it would be great if it did !).
And perhaps not 100% standalone - I...
Forum: Coders. General 18 November 2021, 20:03
Replies: 323
Views: 24,654
Posted By meynaf
Of course it depends on the task. Your PDOS/386...

Of course it depends on the task. Your PDOS/386 is just a wrapper around functions, it's somehow trivial task. Try to write cpu emulation code and you'll see a completely different world.



Most...
Forum: Coders. General 18 November 2021, 19:34
Replies: 323
Views: 24,654
Posted By meynaf
That depends. In late 80s yes, probably, but not...

That depends. In late 80s yes, probably, but not before.
Yes memory was a constraint, but display capabilities were more important IMO. Say, if you want 80x25 -- impossible for my old Oric. Limited...
Forum: Coders. General 18 November 2021, 13:17
Replies: 323
Views: 24,654
Posted By meynaf
Why not just asking the question ? ;) IMO it...

Why not just asking the question ? ;)

IMO it didn't go wrong in the 80's. Rather, in the 90's.
In the 80's machines didn't have enough horsepower to do otherwise : if you didn't tie your program...
Forum: Coders. General 16 November 2021, 13:43
Replies: 323
Views: 24,654
Posted By meynaf
That's not the point. What about programmers...

That's not the point.
What about programmers who don't use the command line ? Any reason why they can't use any version at all ?
Forum: Coders. General 16 November 2021, 12:56
Replies: 323
Views: 24,654
Posted By meynaf
Most Windows programs have a GUI. Most Windows...

Most Windows programs have a GUI.
Most Windows users don't even know what a command line is.
Forum: Coders. General 16 November 2021, 12:24
Replies: 323
Views: 24,654
Posted By meynaf
Windows is more about using GUI than anything...

Windows is more about using GUI than anything else - hence its name. As a command-line environment it is useless.
Forum: Coders. General 16 November 2021, 10:47
Replies: 323
Views: 24,654
Posted By meynaf
Actually, not at all. For x86 we can hardly...

Actually, not at all.
For x86 we can hardly compare, as it's so unwieldy for this purpose that even I wouldn't write asm for it (ok, there is worse - don't ask me for mips or alpha asm...). And...
Forum: Coders. General 16 November 2021, 10:36
Replies: 323
Views: 24,654
Posted By meynaf
Actually, it's 8088 that was selected for...

Actually, it's 8088 that was selected for original IBM PC 5150.
I remember having read somewhere that by the time they made the choice, 68000 wasn't available at all yet.
Forum: Coders. General 16 November 2021, 10:26
Replies: 323
Views: 24,654
Posted By meynaf
I see. So every file in this machine...

I see.



So every file in this machine that comes from other machines wastes 1 bit per byte. Hopefully this is just imaginary machine.



It always amazes me how much people having learned...
Forum: Coders. General 15 November 2021, 20:50
Replies: 323
Views: 24,654
Posted By meynaf
Not my fault. The point was that "char" datatype...

Not my fault. The point was that "char" datatype is ill-suited for handling bytes due its size is not guaranteed. That should be easy to understand. But no.



So when we need to read 8-bit bytes...
Forum: Coders. General 15 November 2021, 19:11
Replies: 323
Views: 24,654
Posted By meynaf
So char, not actually a character, is kind of a...

So char, not actually a character, is kind of a misnomer.
Not surprising from C, where 'x' is actually an int.



It does not need to, but let's face the fact : it usually does.
But maybe char...
Forum: Coders. General 15 November 2021, 14:49
Replies: 323
Views: 24,654
Posted By meynaf
Right, but for all practical purposes it's not. ...

Right, but for all practical purposes it's not.



It's 1, always ? Even when compiled for unicode support ?
Anyway, the point is : char is unsuitable for safely handling bytes. Do you at least...
Forum: Coders. General 15 November 2021, 13:09
Replies: 323
Views: 24,654
Posted By meynaf
And you are dealing with low capacity systems...

And you are dealing with low capacity systems with C code. Don't you see a little problem here ?
Forum: Coders. General 15 November 2021, 12:47
Replies: 323
Views: 24,654
Posted By meynaf
It looks good only on paper. In real life, it has...

It looks good only on paper. In real life, it has been a pita for everyone having to code for it. So yes it was a poor design.



No. 4GiB isn't "tiny". As more than 99.9% of apps don't actually...
Forum: Coders. General 13 November 2021, 14:20
Replies: 323
Views: 24,654
Posted By meynaf
The "start small, then grow" method usually...

The "start small, then grow" method usually doesn't work.



Consider it as a generic problem if you want, but x86-style segmentation hasn't been used anywhere else that i know of, and this only...
Forum: Coders. Asm / Hardware 13 November 2021, 13:08
Replies: 34
Views: 2,212
Posted By meynaf
Why do you insist ? Problem is solved, end of...

Why do you insist ? Problem is solved, end of story.
Forum: Coders. Asm / Hardware 11 November 2021, 09:07
Replies: 12
Views: 962
Posted By meynaf
Typo ? They do set the status flags.

Typo ? They do set the status flags.
Forum: Coders. General 10 November 2021, 21:41
Replies: 323
Views: 24,654
Posted By meynaf
It is not for "cursor" movement, but for player...

It is not for "cursor" movement, but for player movement in some game. Or for whatever, it does not matter.
A program should have the ability to detect key presses. Or key releases. Or several keys...
Forum: support.WinUAE 10 November 2021, 10:25
Replies: 18
Views: 1,191
Posted By meynaf
It will not work. The emulator can't emulate...

It will not work. The emulator can't emulate cycle exact 060.



Then set it as "fastest possible" and activate JIT. If fastest is active, cpu type does not matter anymore.
Forum: Coders. Asm / Hardware 09 November 2021, 11:51
Replies: 34
Views: 2,212
Posted By meynaf
@Photon: you've had a bad night or what ? :crazy ...

@Photon: you've had a bad night or what ? :crazy


It's in post #7, i've mentioned this in previous post. So yes i had an answer. That said, i wasn't required to have one.



Nope. The one...
Forum: Coders. General 08 November 2021, 20:23
Replies: 323
Views: 24,654
Posted By meynaf
So this came with VGA, right ? I mean, it wasn't...

So this came with VGA, right ? I mean, it wasn't there from day one ?
Forum: Coders. Asm / Hardware 08 November 2021, 20:12
Replies: 34
Views: 2,212
Posted By meynaf
What do you mean by contribute my answer ? If...

What do you mean by contribute my answer ?
If you mean showing my own version, it's there since post #7.
Forum: Coders. General 08 November 2021, 09:11
Replies: 323
Views: 24,654
Posted By meynaf
But what codes ? A key press is just a character...

But what codes ? A key press is just a character (usually).
And ANSI codes don't handle keys by position, do they ? How the heck can we then do "WASD" kind of key detection for movement ?


...
Forum: Coders. General 07 November 2021, 20:22
Replies: 323
Views: 24,654
Posted By meynaf
No. Only segmented memory model exists for 8086. ...

No. Only segmented memory model exists for 8086.



What ? You want the user to type ansi codes now ?



Redirect to what ?
Forum: Coders. General 07 November 2021, 14:18
Replies: 323
Views: 24,654
Posted By meynaf
Didn't you read what i wrote ? There is nothing...

Didn't you read what i wrote ? There is nothing such as large memory model provided by DOS !



You just can't "channel everything" -- ansi is for output, not for input.
And either direction...
Forum: Coders. Asm / Hardware 07 November 2021, 09:53
Replies: 34
Views: 2,212
Posted By meynaf
For this Ross' code is fine. move.l...

For this Ross' code is fine.

move.l d2,d1
neg.l d1
and.l d2,d1
Forum: Coders. General 07 November 2021, 09:51
Replies: 323
Views: 24,654
Posted By meynaf
It doesn't matter. In all cases, you can't turn...

It doesn't matter. In all cases, you can't turn non-trivial 16-bit MSDOS programs using x86_16's bogus memory model into 32-bit programs by just recompiling.



It's not among the things i'd keep...
Forum: Coders. Asm / Hardware 06 November 2021, 19:40
Replies: 34
Views: 2,212
Posted By meynaf
But there is an instruction to find the highest...

But there is an instruction to find the highest bit set, so we can just isolate the lowest one with a simple trick (so we have a value with only one bit set) and use that instruction. No loop to find...
Forum: Coders. General 06 November 2021, 16:48
Replies: 323
Views: 24,654
Posted By meynaf
True MSDOS is for me something that will run...

True MSDOS is for me something that will run existing MSDOS programs unchanged.



This is how computing was done in the 70's :p



Maybe there is already something wrong in setting C90 as a...
Forum: Coders. Asm / Hardware 06 November 2021, 16:35
Replies: 34
Views: 2,212
Posted By meynaf
Reversing the bit order or the algorithm would...

Reversing the bit order or the algorithm would need either to effectively reverse the bits (but we have no bitrev) or counting the '1' to adjust parameters (but we have no popcnt).
Forum: Coders. General 06 November 2021, 13:34
Replies: 323
Views: 24,654
Posted By meynaf
There is no memory model to select. There is one....

There is no memory model to select. There is one. If you want something else, go to protected mode but it's not true MSDOS anymore.



This is very PC biased. Too PC biased.



Except that...
Forum: Coders. Asm / Hardware 06 November 2021, 12:31
Replies: 34
Views: 2,212
Posted By meynaf
You will break out of the loop after 29...

You will break out of the loop after 29 iterations, then have to execute it 3 more times as i loop over all '1'. So yes you'll do 32 iterations in total, dbcs or not.
Now your dbcs does not update...
Forum: Coders. General 06 November 2021, 12:24
Replies: 323
Views: 24,654
Posted By meynaf
I was not speaking about x86 assembler, but about...

I was not speaking about x86 assembler, but about what the mere x86 architecture inflicted to DOS programs. Things such as near/far pointers, for example.



There are many more programs doing...
Forum: Coders. Asm / Hardware 06 November 2021, 11:21
Replies: 34
Views: 2,212
Posted By meynaf
Right, but in this example it's clearly not about...

Right, but in this example it's clearly not about 68000.


I have other examples of similar code :

; pack the bits of d2 into d7, with mask=d1
moveq #0,d7
.loop
bfffo d2{0:32},d4
beq.s...
Forum: Coders. General 06 November 2021, 11:03
Replies: 323
Views: 24,654
Posted By meynaf
These 4 levels aren't enough to run real MSDOS...

These 4 levels aren't enough to run real MSDOS programs properly - you also need x86. Yes, even for just source level.



And then you'll discover 2 has nothing to offer 1 doesn't already have.
...
Showing results 1 to 40 of 4395

 
Forum Jump

All times are GMT +2. The time now is 05:10.


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