Search found 1271 matches

by Zamuel_a
Fri Oct 22, 2021 11:30 am
Forum: Professionals
Topic: Is 320x200 resolution possible in VGA on Falcon?
Replies: 7
Views: 385

Re: Is 320x200 resolution possible in VGA on Falcon?

I got a 320x200 display that show as fullscreen in HATARI but on a real VGA CRT it gives a black border at top and bottom. The VSYNC is not changed to match the display. It is still 640x480 (with double pixels in X and Y).
by Zamuel_a
Wed Oct 20, 2021 1:13 pm
Forum: Professionals
Topic: Is 320x200 resolution possible in VGA on Falcon?
Replies: 7
Views: 385

Re: Is 320x200 resolution possible in VGA on Falcon?

I need it in my own program so had liked to know what registers to set. Like when using screenpain. I tried to find a 320x200 resolution in screenpain but couldn't get it. Or I made a misstake.
by Zamuel_a
Wed Oct 20, 2021 1:08 pm
Forum: Professionals
Topic: Is 320x200 resolution possible in VGA on Falcon?
Replies: 7
Views: 385

Re: Is 320x200 resolution possible in VGA on Falcon?

I forgot to mention. I need it for 16bit true color mode.
by Zamuel_a
Wed Oct 20, 2021 1:01 pm
Forum: Professionals
Topic: Is 320x200 resolution possible in VGA on Falcon?
Replies: 7
Views: 385

Is 320x200 resolution possible in VGA on Falcon?

I wonder if it's possible to get a resolution of 320x200 in VGA mode or is it only 320x240 that is possible? On PC you could always get the MCGA 320x200 mode that was common in games. I know I can change the border size to get a 320x200 display area, but when you get a thick top and bottom border, b...
by Zamuel_a
Fri Oct 01, 2021 10:56 am
Forum: C / PASCAL etc.
Topic: AHCC
Replies: 105
Views: 85384

Re: AHCC

I downloaded v6 to see if AHCC is faster than Pure C on code I wrote and since the project should be compatible I could give it a try, but it crasch. I don't know which version to use? (Falcon). One folder is just called AHCC and the PRG file here gives a lot of bombs on screen. I tried the one in t...
by Zamuel_a
Fri Oct 01, 2021 6:28 am
Forum: Hatari
Topic: Hatari emulated speed different on different computers?
Replies: 13
Views: 1029

Re: Hatari emulated speed different on different computers?

I figured out that if I touch the cache register, CACR, when Hatari is "messed up" and is way to fast. On my real Falcon I get 1-2 fps with cache disabled and 4 with cache on. I have tried different settings. Data cache on/off and so, but it just get slower than keeping the default settings and not ...
by Zamuel_a
Tue Sep 28, 2021 5:07 pm
Forum: Hatari
Topic: Hatari emulated speed different on different computers?
Replies: 13
Views: 1029

Re: Hatari emulated speed different on different computers?

Now Hatari is even more confusing :) Without changing anything from yesterday, now when I exit my program and goes back to Pure C everything is very slow. Takes like 10 seconds to redraw the screen, bitplane by bitplane. When I start my program it goes fast but GEM is increadible slow. When I remove...
by Zamuel_a
Mon Sep 27, 2021 8:27 pm
Forum: Professionals
Topic: Want to make sure I enable the cache in the right way
Replies: 9
Views: 504

Re: Want to make sure I enable the cache in the right way

I tried to run my program on a RGB monitor and gained 1 fps so it's still not close to Hatari (got 5 in RGB mode, 4 in VGA and 18 on Hatari)
by Zamuel_a
Mon Sep 27, 2021 3:59 pm
Forum: Professionals
Topic: Want to make sure I enable the cache in the right way
Replies: 9
Views: 504

Re: Want to make sure I enable the cache in the right way

ThorstenOtto wrote: Mon Sep 27, 2021 2:20 pm And are you sure you have are emulating a 030 in Hatari? for 040/060, the CACR is different.
Yes Hatari says
16MHz/030(CE)-14Mb Falcon TOS 4.04 VGA 50Hz
by Zamuel_a
Mon Sep 27, 2021 12:07 pm
Forum: Professionals
Topic: Want to make sure I enable the cache in the right way
Replies: 9
Views: 504

Want to make sure I enable the cache in the right way

I am testing a 3d program I made and get very strange results when I compare it on a real Falcon and in Hatari (I wrote about it in the Hatari section). With everything turned on in Hatari for the most accurate emulation I get around 18fps on my program (both what I measure with the 200Hz timer and ...
by Zamuel_a
Sat Sep 25, 2021 3:13 pm
Forum: Hatari
Topic: Hatari emulated speed different on different computers?
Replies: 13
Views: 1029

Re: Hatari emulated speed different on different computers?

I tried on the real Falcon to turn on/off the cache with the program Falcon SX, just to make sure the cache is on and with it OFF I got 1 fps and ON 4, so the cache must be on. Very strange why the program runs at up to 20fps on a fast PC with all CPU emulation options on.
by Zamuel_a
Fri Sep 24, 2021 10:15 pm
Forum: Hatari
Topic: Hatari emulated speed different on different computers?
Replies: 13
Views: 1029

Re: Hatari emulated speed different on different computers?

I tried my program on a real Falcon and it runs in 3-5 fps (sadly) instead of the 8 or 18 I get on different PC machines. A fast PC with all CPU stuff enabled runs at 18fps and the more stuff I remove from the emulation, the slower it gets, but not nearly as slow as on the real machine.
by Zamuel_a
Wed Sep 22, 2021 11:09 am
Forum: 680x0
Topic: How to use DBRA with offset and not labels
Replies: 21
Views: 507

Re: How to use DBRA with offset and not labels

Yes that is the problem! I checked in the Pure C debuger and the dissambly is changed to adda.w even that I wrote adda.l in the program. Now it seems to work. Thanks for the advices! Seems like dbra d0,-32 or dbra d0,*-32 works, but start counts at different addresses, so I could make both of them w...
by Zamuel_a
Wed Sep 22, 2021 11:01 am
Forum: 680x0
Topic: How to use DBRA with offset and not labels
Replies: 21
Views: 507

Re: How to use DBRA with offset and not labels

I use the assembler in Pure C.
The offsets are rather small, but I have forced a ADDA.L since the address is a long word. Or maybe ADDA.W #123,a0 and ADDA.L #123,a0 gives the same result?
by Zamuel_a
Wed Sep 22, 2021 10:47 am
Forum: 680x0
Topic: How to use DBRA with offset and not labels
Replies: 21
Views: 507

Re: How to use DBRA with offset and not labels

Is ADDA.L just 4 bytes? It looks like 6 bytes when I check a dissambled example. But my program crasch all the time I count ADDA.L as 6 bytes in my loop. If I change it to 4 it seems to work. So if I count the bytes from all the commands I use in the loop and put that as dbra d0,*-num bytes AND I co...
by Zamuel_a
Wed Sep 22, 2021 10:22 am
Forum: 680x0
Topic: How to use DBRA with offset and not labels
Replies: 21
Views: 507

Re: How to use DBRA with offset and not labels

Hmm, I'm not sure. When I add an label the output is assembled as: 51C8 FFE0 dbra d0,loop and FFE0 = -32 so I want to create FFE0 here and not anything else ok, it depend on where you start counting from. dbra d0,*-2 means that the loop points directly to the "DBRA" instruction Therefore if you hav...
by Zamuel_a
Wed Sep 22, 2021 9:09 am
Forum: 680x0
Topic: How to use DBRA with offset and not labels
Replies: 21
Views: 507

Re: How to use DBRA with offset and not labels

Just a question...is there a reason you are not using local labels? The code is generated automatically and will be made of several loops so it would need to keep track of labels already used and this code will be used several times in the final program so when I need to track what labels I have us...
by Zamuel_a
Wed Sep 22, 2021 9:02 am
Forum: 680x0
Topic: How to use DBRA with offset and not labels
Replies: 21
Views: 507

Re: How to use DBRA with offset and not labels

Just a question...is there a reason you are not using local labels? The code is generated automatically and will be made of several loops so it would need to keep track of labels already used and this code will be used several times in the final program so when I need to track what labels I have us...
by Zamuel_a
Wed Sep 22, 2021 8:44 am
Forum: 680x0
Topic: How to use DBRA with offset and not labels
Replies: 21
Views: 507

How to use DBRA with offset and not labels

I made a program that automatically generates 68000 code so I don't want labels in it. So for example in a loop using DBRA I want to do this: dbra d0,-32 ; jump back 32 bytes But this doesn't work. When I check the compiled result I get 51C8 FF6E dbra d0,-32 Why is -32 converted to FF6E = -146 decim...
by Zamuel_a
Fri Sep 17, 2021 9:26 pm
Forum: Hatari
Topic: Hatari emulated speed different on different computers?
Replies: 13
Views: 1029

Re: Hatari emulated speed different on different computers?

I use a real TOS version on both machines and not any multitasking or anything. If I disable more of the CPU functions (to make the simulator faster) the FPS drops to 1-2. So the settings affect a lot.
by Zamuel_a
Thu Sep 16, 2021 4:47 pm
Forum: Hatari
Topic: Hatari emulated speed different on different computers?
Replies: 13
Views: 1029

Re: Hatari emulated speed different on different computers?

I use the same version (2.3.1) and same settings, but I did see one difference that seems to solve it. I hadn't enabled the MMU on my slower PC since it makes the emulation very slow. I tried with it on and now I got almost the same FPS as on the other machine, but everything goes slower so it looks...
by Zamuel_a
Thu Sep 16, 2021 9:02 am
Forum: Hatari
Topic: Hatari emulated speed different on different computers?
Replies: 13
Views: 1029

Hatari emulated speed different on different computers?

I made a 3D test for Falcon that I have so far only tested under Hatari, but wonder how to setup Hatari to be as accurate as possible to a real Falcon. I have enabled all CPU functions and everything else I can find. The "problem" is that when I tries it on different PCs I get very different results...
by Zamuel_a
Sat Sep 04, 2021 9:13 pm
Forum: C / PASCAL etc.
Topic: Save assembly output from Pure Debugger?
Replies: 1
Views: 279

Save assembly output from Pure Debugger?

The Assembly output in Pure debugger is very handy since it show the generated code and the C code at each part. Is there anyway to save this output? I can't find anything obvious in the debugger. Had been great if it was possible since it would be a good start to optimize code from.
by Zamuel_a
Thu Sep 02, 2021 7:53 pm
Forum: C / PASCAL etc.
Topic: Starting to program C for the Falcon
Replies: 4
Views: 386

Re: Starting to program C for the Falcon

Thanks for the information! I think I got something working now.
by Zamuel_a
Thu Sep 02, 2021 2:31 pm
Forum: C / PASCAL etc.
Topic: Starting to program C for the Falcon
Replies: 4
Views: 386

Starting to program C for the Falcon

Hi I have started for fun a project for the Falcon and want to write it in C (with assembly in the future). I have programmed in assembly before and done graphical stuff, but is there an example on how to set it up for a double buffer in C? I saw examples using the "VsetScreen" function and it works...

Go to advanced search