Spent the morning writing a J1 cpu emulator, learnt a bunch of things, brought these new ideas to #uxn this afternoon.

@neauoire :moar: new uxn core? what did i miss? :)
code looks even more clean now :o

@sejo The "slow" implementation is much faster. There are no more duplicated functions for 8/16 bits functions :D


@neauoire @sejo o_o swapping functioe pointers is a clever trick, nice! i'm curious as to why a switch-case is faster than the opcode table.

@foura @sejo

switch statements are converted to jump tables, which perform a few ifs (for range checking), and a single jump.

Sign in to participate in the conversation
Mastodon @ SDF

"I appreciate SDF but it's a general-purpose server and the name doesn't make it obvious that it's about art." - Eugen Rochko