Project64 Debugger
#9
I did a large update to the script API. New documentation here:
https://hack64.net/docs/pj64d/apidoc.php

Notable additions:

- expand events interface:
    - onstatechange
    - onpifread
    - onsptask
    - onpidma
    - onmousedown
    - onmouseup
    - onmousemove

-expand debug interface:
    - resume()
    - step()
    - skip()
    - showmemory(address[, physical])
    - showcommands(address)

- add console.listen(inputListener) for handling non-JS input from the script console
- add pj64 interface for high level control of the emulator (opening and closing roms, etc.)
- implement basic JS require() with native duktape module support
- add exec() function for shell command execution
- add remaining cop0 registers and fcr31
- add N64Image class for texture manipulation
- add local/remote address properties and more event listeners to Socket & Server

Breaking changes:

- change parameter(s) of events.on* callbacks to event objects
- rename fs.writeFile to fs.writefile
- rename fs.readFile to fs.readfile
- rename mem.float/mem.double to mem.f32/ mem.f64
- rename global float/double type IDs to f32/f64
- move gpr, ugpr, fpr, dfpr, cop0 interfaces into new cpu interface
- move gpr.pc to cpu.pc
- move gpr.hi/ugpr.hi to cpu.hi/cpu.uhi
- move gpr.lo/ugpr.lo to cpu.hi/cpu.ulo
- remove maskless variant of events.onopcode
- remove unstable screen interface and events.ondraw
- remove redundant rom interface because mem interface can access ROM
- remove GPR_ANY_ARG, GPR_ANY_TEMP, GPR_ANY_SAVE
- change parameter(s) of Server constructor
- change parameter(s) of socket.connect

---

There is also some work on a screen drawing interface similar to BizHawk's. It's a little unstable so I put it on a separate branch for now:

Source: https://github.com/shygoo/project64/tree...s-unstable
Documentation: https://hack64.net/docs/pj64d/apidoc-unstable.php
Download: https://hack64.net/docs/pj64d/Project64-....09.03.exe (the nag popup is removed).

If you're on Windows 7 you'll probably need to use a Direct3D plugin (i.e. Jabo's).
David liked this post
Reply


Messages In This Thread
Project64 Debugger - by shygoo - 03-10-2018, 12:03 PM
RE: Project64 Debugger - by shygoo - 01-08-2019, 06:50 PM
RE: Project64 Debugger - by shygoo - 01-14-2019, 08:59 PM
RE: Project64 Debugger - by shygoo - 01-17-2019, 07:23 PM
RE: Project64 Debugger - by shygoo - 04-04-2019, 04:23 PM
RE: Project64 Debugger - by shygoo - 04-22-2019, 10:33 AM
RE: Project64 Debugger - by shygoo - 12-01-2019, 07:54 PM
RE: Project64 Debugger - by JasminDreasond - 04-25-2020, 02:22 AM
RE: Project64 Debugger - by shygoo - 09-03-2021, 06:15 PM



Users browsing this thread: 1 Guest(s)