Search found 4490 matches

by simonsunnyboy
Sun Nov 19, 2017 9:10 am
Forum: Coding
Topic: etv_term vector
Replies: 21
Views: 465

Re: etv_term vector

Well how does Hatari know that I want $6163 to be a uint16_t instead? Esp. if it is part of a structure? This evaluation thing does not help with true source level debugging. I do not wat to dig everything behind data to know how to interpret the raw memory dumps. So I add code to provide this infor...
by simonsunnyboy
Sat Nov 18, 2017 10:58 am
Forum: Coding
Topic: etv_term vector
Replies: 21
Views: 465

Re: etv_term vector

Exactly what I need then, I only have to hookup my existing code to the vector...
see viewtopic.php?f=51&t=29249#p293615 what I am using with slight improvements.
by simonsunnyboy
Sat Nov 18, 2017 10:38 am
Forum: Coding
Topic: etv_term vector
Replies: 21
Views: 465

Re: etv_term vector

... So I think all should work, and it is the place to add an atexit() handler aswell, making the thing really useful... Remember that you can't expect to (reliably) call GEMDOS functions from the etv_term vector. So its usefulness might be pretty limited. The output is all NATFEATS calls, I am usi...
by simonsunnyboy
Sat Nov 18, 2017 10:24 am
Forum: Hatari
Topic: Hatari debugging with DRI symbols, ignore .a files
Replies: 4
Views: 180

Re: Hatari debugging with DRI symbols, ignore .a files

Host: gcc version 6.3.0 20170406 (Ubuntu 6.3.0-12ubuntu2)
Atari target: gcc version 4.6.4 (MiNT 20170417) (GCC)

The latter as provided by Vincent's Ubuntu packages for 17.04
by simonsunnyboy
Sat Nov 18, 2017 10:21 am
Forum: Coding
Topic: etv_term vector
Replies: 21
Views: 465

Re: etv_term vector

Yes but I also want to execute additional code to dump my program's state through the Debugger console print functions, a program specific coredump facility.

Unless you provide the Hatari debugger with the ability to list my variables correctly with datatypes and readable names ;)
by simonsunnyboy
Fri Nov 17, 2017 6:23 pm
Forum: Coding
Topic: etv_term vector
Replies: 21
Views: 465

Re: etv_term vector

I browsed the Atari ST Profibuch, atleast the 1988 edition I have lists a generic exception handler drawing bombs in assembly language, TOS 1.0 presumably. This indeed seems to call Pterm0() at the end of the bombs. If this is in place for others, I have to test. With EmuTOS only the wait for keypre...
by simonsunnyboy
Fri Nov 17, 2017 5:37 pm
Forum: Paradize forum
Topic: [Tool] Atari ST Harddisk menu
Replies: 12
Views: 11386

Re: [Tool] Atari ST Harddisk menu

Configurable key repeat can be added.
The self-ad will stay :P
by simonsunnyboy
Fri Nov 17, 2017 5:32 pm
Forum: Hatari
Topic: Hatari debugging with DRI symbols, ignore .a files
Replies: 4
Views: 180

Re: Hatari debugging with DRI symbols, ignore .a files

I tried the new feature and it seems to be working. Thank you! I only get an "ignored" message now.
by simonsunnyboy
Fri Nov 17, 2017 5:27 pm
Forum: Coding
Topic: etv_term vector
Replies: 21
Views: 465

Re: etv_term vector

czietz wrote:Yes, etv_term is called by Pterm. Your point being? Look what happens after displaying an exception: https://github.com/emutos/emutos/blob/c ... int.c#L586


Thanks, seems the call is hidden inside EmuTOS. Does regular TOS do the same?
by simonsunnyboy
Fri Nov 17, 2017 5:26 pm
Forum: Coding
Topic: etv_term vector
Replies: 21
Views: 465

Re: etv_term vector

Wow, I have never heard about this one before and it sounds like a totally useful thing! Does this applies also to exceptions? I mean if an app tries to access hardware or causes memory violation, will this vector still be called? That's my use case. I would like to exploit it to execute a hook to ...
by simonsunnyboy
Thu Nov 16, 2017 7:18 pm
Forum: Coding
Topic: etv_term vector
Replies: 21
Views: 465

Re: etv_term vector

marndt@silentbox:~/Projects/external/EmuTOS$ grep -r "etv_term" * bdos/proc.c: etv_term(); bios/bios.c: etv_term = just_rts; bios/tosvars.S: .globl _etv_term bios/tosvars.S:_etv_term: .ds.l 1 // GEM program termination vector bios/tosvars.h:extern void (*etv_term)(void); doc/bios.txt: etv...
by simonsunnyboy
Thu Nov 16, 2017 4:55 pm
Forum: CosmosEx
Topic: Best Practices - CosmosEX Mini
Replies: 9
Views: 1213

Re: Best Practices - CosmosEX Mini

Yes, to get the driver on the card, run it from a floppy or the network drive.
Sorry if I am unable to deduct the intention of your question. Maybe you need to rephrase it?
by simonsunnyboy
Thu Nov 16, 2017 4:46 pm
Forum: Coding
Topic: etv_term vector
Replies: 21
Views: 465

etv_term vector

Quoting from the toshyp: "etv_term LONG 0x408 Logical GEMDOS vector 258. Should always be set via Setexc. Programs that hook into any system vectors should also hook into this vector. If the program is terminated in an abnormal manner, the operating system jumps first via this vector, so that o...
by simonsunnyboy
Thu Nov 16, 2017 4:34 pm
Forum: Hatari
Topic: Symbol listing in Hatari debugger?
Replies: 24
Views: 609

Re: Symbol listing in Hatari debugger?

I know but my skills for GUI coding are not so good. A reason why I do not write GEM applications...the proper idea would be to expand what hatariui already offers.

Sadly I am no Python wizard either :(
by simonsunnyboy
Wed Nov 15, 2017 5:29 pm
Forum: GFA BASIC
Topic: reverse string or MIRROR$
Replies: 22
Views: 478

Re: reverse string or MIRROR$

I suspect goofing around as he does for 10 years. Sorry, never saw clean solutions from his side. Only overcomplicated ones like the one posted.
by simonsunnyboy
Wed Nov 15, 2017 4:53 pm
Forum: GFA BASIC
Topic: reverse string or MIRROR$
Replies: 22
Views: 478

Re: reverse string or MIRROR$

String concatenation and MID$() generate library calls (BSRs) which execute much more code. BYTE{} swapping even with a temporary placeholder generates simple move.b instructions. I don't know that this sort routine requires asm or such optimizations, but I always have fun with such things no matte...
by simonsunnyboy
Wed Nov 15, 2017 4:51 pm
Forum: CosmosEx
Topic: Best Practices - CosmosEX Mini
Replies: 9
Views: 1213

Re: Best Practices - CosmosEX Mini

See my post - please try copying as I have said.. so you are using JUST The CE_DD driver then? So you have no ASCI to CE communication going on? I do think I have read, that you can take the top part off and just use it as a HDD emu. James ACSI is always active as it is used to configure the device...
by simonsunnyboy
Tue Nov 14, 2017 5:24 pm
Forum: GFA BASIC
Topic: reverse string or MIRROR$
Replies: 22
Views: 478

Re: reverse string or MIRROR$

Certainly not PEEK or POKE for a loop iterating backwards, taking subcharacters with MID$ and then outputting them to a result.

But it might a hint for lp to add to his GBE.
by simonsunnyboy
Tue Nov 14, 2017 5:19 pm
Forum: Hatari
Topic: Symbol listing in Hatari debugger?
Replies: 24
Views: 609

Re: Symbol listing in Hatari debugger?

Done: https://hg.tuxfamily.org/mercurialroot/hatari/hatari/rev/e2d0dfa775f2 I just wonder why listing them in name order instead of address order is more expected. :-) Because it's easier to find a symbol in an alphabetical-sorted list :) Most of the time, you know you're looking for a particular s...
by simonsunnyboy
Sun Nov 12, 2017 5:06 pm
Forum: Hatari
Topic: Symbol listing in Hatari debugger?
Replies: 24
Views: 609

Re: Symbol listing in Hatari debugger?

I would have expected that one on "symbols" without any further arguments...but that seems to be working ok.

Thanks :)
by simonsunnyboy
Sun Nov 12, 2017 4:53 pm
Forum: Hatari
Topic: Symbol listing in Hatari debugger?
Replies: 24
Views: 609

Re: Symbol listing in Hatari debugger?

> symbols conio.sym Reading 'nm' style ASCII symbols from 'conio.sym'... WARNING: syntax error on line 106, skipping. WARNING: symbols '_basepage' & '__bss_start' have the same 0x115c address. WARNING: symbols '_assert_init.part.0' & 'CMakeFiles' have the same 0x4d0 address. WARNING: symbol...
by simonsunnyboy
Sun Nov 12, 2017 1:41 pm
Forum: Paradize forum
Topic: [Tool] Atari ST Harddisk menu
Replies: 12
Views: 11386

Re: [Tool] Atari ST Harddisk menu

No feedback sofar :( But I added the alternative video setup code now and it works for me. On the AUTO boot prompt, press * on the ekypad to toggle alternative video init code on and off. Don't forget to save the working setting from inside the menu. Update can be downloaded from the Paradize website.
by simonsunnyboy
Sun Nov 12, 2017 12:35 pm
Forum: Hatari
Topic: Symbol listing in Hatari debugger?
Replies: 24
Views: 609

Symbol listing in Hatari debugger?

Is it possible to list the loaded symbols inside Hatari's debugger? I get a "Loaded xxxx symbols from xxx.prg message" It is is nice to see it loads symbols but if I don't remember some of them, it is tedious to make use of them. Is it possible to implement some sort of "list symbols&...
by simonsunnyboy
Sun Nov 12, 2017 12:32 pm
Forum: Hatari
Topic: Hatari debugging with DRI symbols, ignore .a files
Replies: 4
Views: 180

Hatari debugging with DRI symbols, ignore .a files

I was debugging a program with DRI symbols compiled with gcc. I get the following symbol load output for the Hatari debugger: NOTE: ignored 3 globally defined equated values. NOTE: ignored 843 unnamed / local symbols (= name starts with '.L'). NOTE: ignored 19 object file names (= name has '/' or en...
by simonsunnyboy
Fri Nov 10, 2017 4:23 pm
Forum: CosmosEx
Topic: Best Practices - CosmosEX Mini
Replies: 9
Views: 1213

Re: Best Practices - CosmosEX Mini

Hi, i also got my MicroCosmos these days. Its really tiny, now i wonder - is it compatible with a RaspberryPi zero? How do you folks mount it into your Atari? Or do you use it external? Mine runs externally just fine. I only used a mounted network drive sofar, also from my NAS which worked fine. I ...

Go to advanced search