It is currently Tue Apr 24, 2018 12:04 am

All times are UTC - 7 hours





Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Mon Mar 26, 2018 6:36 am 
Offline
User avatar

Joined: Fri Sep 26, 2008 7:55 pm
Posts: 113
Location: Montreal
Are there any emulators with debuggers / hex editors which allow you to increment / decrement bytes using the mouse wheel or key / mousewheel combination? if this isn't a regular feature it should be. I'm sure many people here have spent hours typing in hexadecimal bytes with their left hand until their whole arm was sore. I've even tried dipping into the FCEUXD SP sourcecode to see if it was remotely possible to make that alteration to the program alas my C++ is worse than my Hebrew. has anyone here found another possible solution to this problem?


Top
 Profile  
 
PostPosted: Mon Mar 26, 2018 7:01 am 
Offline
Formerly WheelInventor

Joined: Thu Apr 14, 2016 2:55 am
Posts: 1505
Location: Gothenburg, Sweden
To the best of my knowledge, this is not a regular feature, no. I've mainly used resedit (18 years ago), hxd and fceux.

_________________
http://www.frankengraphics.com - personal NES blog


Top
 Profile  
 
PostPosted: Mon Mar 26, 2018 7:15 am 
Offline
User avatar

Joined: Fri Sep 26, 2008 7:55 pm
Posts: 113
Location: Montreal
Not even Mesen, beautiful beast that it is, has this, and it practically has everything. Maybe I should just suck it up and Git Gud at typing :p

funny I can play bass riffs for hours but ask me to type 09 then 0A and I'm crying :'(


Top
 Profile  
 
PostPosted: Mon Mar 26, 2018 8:08 am 
Offline
Formerly WheelInventor

Joined: Thu Apr 14, 2016 2:55 am
Posts: 1505
Location: Gothenburg, Sweden
Sounds like you need a more ergonomic interface:
https://www.ipv6buddy.com/ should do it. :)

_________________
http://www.frankengraphics.com - personal NES blog


Top
 Profile  
 
PostPosted: Mon Mar 26, 2018 8:15 am 
Offline
User avatar

Joined: Fri Sep 26, 2008 7:55 pm
Posts: 113
Location: Montreal
Nice. I'd buy one if I saw it at a store. But it's still not as easy as scrolling through values with a mouse.


Top
 Profile  
 
PostPosted: Mon Mar 26, 2018 8:21 am 
Offline
User avatar

Joined: Fri Sep 26, 2008 7:55 pm
Posts: 113
Location: Montreal
the closest solution I can think of for this is to write it into the joypad handler of my NES code, then tie the Windows mouse to the Arkanoid paddle input. but as you all know just dropping a block of code into a NES program isn't always straightforward.


Top
 Profile  
 
PostPosted: Mon Mar 26, 2018 8:24 am 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19947
Location: NE Indiana, USA (NTSC)
ResEdit was before mice made by Apple even routinely had a second button, let alone a scroll wheel. That didn't become common until the Mighty Mouse. Does its successor (Interface Builder in Xcode) bind any editing functions to the wheel?

How would a hex editor distinguish scroll wheel events to change a nibble from scroll wheel events to actually scroll the window? Would it be acceptable to hold a key on the keyboard to enter wheel=increment mode? If you cannot find an existing hex editor as precedent to answer the question of user expectation, do tracker-style music sequencers have a similar binding for the scroll wheel?


Top
 Profile  
 
PostPosted: Mon Mar 26, 2018 8:40 am 
Offline
Formerly WheelInventor

Joined: Thu Apr 14, 2016 2:55 am
Posts: 1505
Location: Gothenburg, Sweden
Quote:
How would a hex editor distinguish scroll wheel events to change a nibble from scroll wheel events to actually scroll the window?


I'd maybe suggest click-hold + y-drag at a ratio of maybe 2 screen pixels = 1 increment/decrement? Guess the comfort zone would depend on mouse dpi as well.

edit: for 0-ff that is. if only changing 0-f, there'd be more space to turn around on.

_________________
http://www.frankengraphics.com - personal NES blog


Top
 Profile  
 
PostPosted: Mon Mar 26, 2018 9:44 am 
Offline
User avatar

Joined: Fri Sep 26, 2008 7:55 pm
Posts: 113
Location: Montreal
as the scroll wheel is already bound to the scrolling of the hex editor window, it would be ideal to access the function I suggested by holding something like Ctrl or Shift + wheel


Top
 Profile  
 
PostPosted: Mon Mar 26, 2018 9:51 am 
Offline
User avatar

Joined: Fri Sep 26, 2008 7:55 pm
Posts: 113
Location: Montreal
interestingly enough I have had some success with ResEdit, modifying FCEUXD SP into a "Netbook Edition" when the windows wouldn't fit my 1024 x 600 screen. ( I modified the window size and text positioning in the nametable viewer ) but like tepples said, it's not going to be as easy to use it to change key bindings.


Top
 Profile  
 
PostPosted: Mon Mar 26, 2018 10:53 am 
Offline
User avatar

Joined: Sun Jan 22, 2012 12:03 pm
Posts: 6220
Location: Canada
FCEUX and Mesen both have built in assemblers, so you could type in assembly code instead of hex, if that's any easier.

Though TBH I'd be curious what you are trying to do that requires typing in a lot of hex digits into an emulator? If you're copying large amounts of data, maybe you could do it with an automated script instead? (Or with existing cut and paste functionality?)


Top
 Profile  
 
PostPosted: Mon Mar 26, 2018 11:07 am 
Offline
Formerly WheelInventor

Joined: Thu Apr 14, 2016 2:55 am
Posts: 1505
Location: Gothenburg, Sweden
On top of my head a romhacker might want to type over raw nametable data (most often static graphics like a title screen or menu). First in RAM to get instant feedback on the edits, then copy (or translate, if it is derived from structures or RLE) the result to ROM to save it.

_________________
http://www.frankengraphics.com - personal NES blog


Top
 Profile  
 
PostPosted: Mon Mar 26, 2018 1:55 pm 
Offline
User avatar

Joined: Fri Sep 26, 2008 7:55 pm
Posts: 113
Location: Montreal
off the top of my head, it would be used for tuning timed code, changing colors or values on the fly, adjusting sounds, other forms of brute-force trial and error which require monitoring output from the program while changing the values that affect it


Top
 Profile  
 
PostPosted: Mon Mar 26, 2018 3:19 pm 
Offline
User avatar

Joined: Sat Feb 12, 2005 9:43 pm
Posts: 10427
Location: Rio de Janeiro - Brazil
But incrementing or decrementing would be really tedious if the current value in a memory position is too far from the value you want... I don't see how this would be an advantage over directly typing the values you need.


Top
 Profile  
 
PostPosted: Mon Mar 26, 2018 3:25 pm 
Offline

Joined: Sun Feb 07, 2016 6:16 pm
Posts: 393
It was pretty trivial to implement (4 whole lines of code), so I give it a shot. Build: download

Basically, hold Alt and put your mouse over any byte you want to change, scroll up to increment by 1, down to decrement by 1.
I can't really see myself using this in most scenarios, but considering it's 4 lines of code, I don't mind keeping it in if it's useful to someone :p


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group