13 June 2017, 12:54 | #1 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,468
|
Debugger changes (was: Some changes..)
Hi Toni,
- can be added a 'memory block fill' command in debugger? (maybe there is but I've not found it..) - command xx doesn't act the same from GUI and CLI: from CLI you can switch to GUI without reactivating emulation, not the vice versa (better w/o reactivating!). - it's possible to add a command to directly jump to 'properties window' (F12) from debugger, to change some emulation property without neither code executed, and return back? Thanks! ross |
22 June 2017, 12:11 | #2 | |||
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
|
Quote:
Quote:
Quote:
GUI is only opened during emulated vblank so it isn't going to be instant. |
|||
23 June 2017, 15:25 | #3 | ||
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,468
|
Thanks for reply
It's useful, same as memcopy or even a little (raw) assembler.. Quote:
Quote:
Bye! ross |
||
25 June 2017, 17:48 | #4 | |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
|
Fill and mem copy added. (check help message)
Assembler would be nice but I have no idea how to make it from CPU emulator tables. I won't accept separate external assembler, it must be based on "gencpu" tables. EDIT: table68k should have enough information to create assembler, someday.. Quote:
Last edited by Toni Wilen; 26 June 2017 at 16:58. |
|
25 June 2017, 20:25 | #5 |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
|
25 June 2017, 21:19 | #6 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,468
|
Code:
Wf <addr> <endaddr> <bytes or string like above>, fill memory. Wc <addr> <endaddr> <destaddr>, copy memory. I <custom event> Send custom event string Thanks Toni! Cheers, ross |
26 June 2017, 22:21 | #7 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
|
Assembler seems to be very possible. Only need some annoying text parsing.
Warning: it probably will be a bit weird with some instructions, just like the disassembler.. |
26 June 2017, 22:55 | #8 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,468
|
This is a BIG news!
|
29 June 2017, 12:15 | #9 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
|
Assembler is now partially done.
- two modes, immediate ("a address instruction") and interactive mode ("a address", return. empty line exits) - "weird" instructions like MOVEM not yet supported (Weird syntax "MVMEL #mask,EA" and "MVMLE #mask,EA" do work..) - 68020+ addressing modes not yet supported (scale factor will be implemented, not sure if I bother with other 68020+ modes) - MMU and FPU instructions are not supported - Only accepts original Motorola syntax even if disassembler uses 68020+ syntax only.. (Both will be supported later) - Out of range values are truncated, no errors reported. - ADD x,An is not supported, it needs to be ADDA (and so on) - And more? Test and report all issues. Last edited by Toni Wilen; 29 June 2017 at 15:10. |
29 June 2017, 15:16 | #10 | ||||||
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,468
|
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
- absolute addressing work but without $ sign - Bcc only relative to start of 'interactive mode' address - bit instruction do not work (maybe they works but I did not find the syntax ) This new feature is really useful! Thanks Toni, ross Last edited by ross; 29 June 2017 at 15:27. Reason: [] |
||||||
29 June 2017, 15:32 | #11 | |||||||
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
|
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
|
|||||||
29 June 2017, 15:49 | #12 | |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,468
|
from CLI yes but not from GUI (i know, is unsupported , but a special char can solve both ambient)
Quote:
(ex. suppose in interactive mode you insert various instructions and then a bcc, the branch is relative from the first instruction..) mmh no i'm wrong ross |
|
29 June 2017, 16:43 | #13 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
|
- "New" syntax (d16,An) and (d8,An,Xn) are now supported.
- Xn multiplier is supported (68020+ only) - bit instruction/shifts with immediate value now work (any instruction that had immediate included with first opcode word and instruction was not somethingQ) Note that btst and friends require .b or .l, it is not handled automatically. EDIT: automatic now. EDIT2: ADD vs ADDA is now handled automatically. Last edited by Toni Wilen; 29 June 2017 at 17:33. |
29 June 2017, 17:51 | #14 | |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,468
|
Quote:
All is working. There is an exception, one of the most strange instruction in 68k ISA: BTST dx,#immediate |
|
29 June 2017, 19:34 | #15 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
|
- BTST Dn,#x is now working (It didn't work because I forgot about that and I hardcoded destination immediate = word size instruction to make LINK working easily..)
- MOVEM is now sane |
29 June 2017, 19:46 | #16 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,468
|
Awesome
|
29 June 2017, 19:50 | #17 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
|
I guess it is good enough now?
|
29 June 2017, 20:25 | #18 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,468
|
Yes! I've to deep test it but is great.
Thanks!!! ross |
29 June 2017, 23:27 | #19 |
Registered User
Join Date: Sep 2007
Location: Stockholm
Posts: 4,332
|
|
30 June 2017, 08:06 | #20 | |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
|
Quote:
Assembler is only couple of hundred lines of code and 2/3 of code is ugly text parsing. (Get source and possible destination opmode and other parameters) Main code is more or less a big loop that iterates already existing opcode table, multiple times, trying to find single matching entry using parsed data. All the opcode data already existed, it only needed to be used to make an assembler. Writing the code was the easy part, finding working logic was more difficult. |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
WinUAE debugger | TreacleWench | support.WinUAE | 3 | 16 December 2016 14:49 |
movem in debugger | Ratte | support.WinUAE | 2 | 15 August 2009 23:10 |
Looking for a good debugger | Camionsauro | Coders. Tutorials | 2 | 22 April 2009 19:50 |
Need help using the WinUAE Debugger | Steve | support.WinUAE | 9 | 10 January 2009 20:00 |
WinUAE Debugger ???? | RetroMan | support.WinUAE | 2 | 27 January 2004 12:17 |
|
|