x86 architecture 1 byte opcodes
https://www.sandpile.org/x86/opc_1.htm
#HackerNews #x86 #architecture #opcodes #computerarchitecture #programming #technews #assembly
#Tag
x86 architecture 1 byte opcodes
https://www.sandpile.org/x86/opc_1.htm
#HackerNews #x86 #architecture #opcodes #computerarchitecture #programming #technews #assembly
Hello-World iOS App in Assembly
https://gist.github.com/nicolas17/966a03ce49f949dd17b0123415ef2e31
#HackerNews #HelloWorld #iOS #App #Assembly #AssemblyLanguage #iOSDevelopment #HackerNews
Easy RISC-V: An interactive introduction to RISC-V assembly programming
https://dramforever.github.io/easyriscv/
#HackerNews #EasyRISC-V #RISC-V #Assembly #Programming #InteractiveLearning #TechEducation #AssemblyLanguage
Look, my VM computes! I wrote a simple program to first initialize the accumulator to the value 15, then repeatedly increment the accumulator forever.
I don't have an assembler yet, but I *did* write a python script which lets me create a file with the bits I want more easily... With an ISA as simple as mine, that's almost as good as an assembler
I also made my repository public: https://github.com/mortie/scisa
🦾 Programming in Assembly Is Brutal, Beautiful, and Maybe Even a Path to Better AI / WIRED
「 DeepSeek’s engineers reached into the subfloor of Nvidia’s chips, commanding each individual machine to compress data from 32 bits to 8 bits—sacrificing precision for efficiency—at precisely the right moments. Observers were stunned. You could do that? The DeepSeek engineers had tapped an art most others had forgotten 」
Look, my VM computes! I wrote a simple program to first initialize the accumulator to the value 15, then repeatedly increment the accumulator forever.
I don't have an assembler yet, but I *did* write a python script which lets me create a file with the bits I want more easily... With an ISA as simple as mine, that's almost as good as an assembler
I also made my repository public: https://github.com/mortie/scisa
I am almost certainly going to add some kind of programmable computer to my game. Thinking of making it programmable with assembly and basically implementing something like a 6502 VM that runs a handful of instructions per game tick. But I'm not entirely sure whether to make it an *actual* 6502, or to just make a similar but simplified ISA
Kinda tempted to do the second one, because 1) making ISAs is fun and 2) standard 6502 assembly is ugly so I'd wanna make some changes anyway.. #gamedev
Alright I have designed a little ISA: https://gist.github.com/mortie/d678c4663fe705219e5dfe90e0bbdc3d. It's somewhat 6502-inspiret, but I think it's cute.
Not done yet, but I think it's a decent starting point. Next step: writing a VM and an assembler...
New #blog post. Let's write a peephole optimizer for #QBE that operates on #AArch64 assembly code. Three years ago, we did this for #AMD64 assembly code. But now that I have Arm machines, we can replicate the effort for another CPU architecture.
https://briancallahan.net/blog/20250901.html
#compiler #compilers #opensource #freesoftware #unix #bsd #freebsd #openbsd #netbsd #dragonflybsd #linux #illumos #macos #assembler #assembly
New #blog post. Let's write a peephole optimizer for #QBE that operates on #AArch64 assembly code. Three years ago, we did this for #AMD64 assembly code. But now that I have Arm machines, we can replicate the effort for another CPU architecture.
https://briancallahan.net/blog/20250901.html
#compiler #compilers #opensource #freesoftware #unix #bsd #freebsd #openbsd #netbsd #dragonflybsd #linux #illumos #macos #assembler #assembly
I wanted to find a small niche hobby coding project that approximately nobody would care about.
I'm tooting about it now, and I don't expect you to care.
I want to use m68k-linux-gnu-as cross-assembler, but it doesn't support the Motorola syntax the original Amiga tools did.
How hard can it be to write a preprocessor that converts vasm mot syntax module compatible assembly to GNU as?!
Turns out, less trivial than I thought.
I wanted to find a small niche hobby coding project that approximately nobody would care about.
I'm tooting about it now, and I don't expect you to care.
I want to use m68k-linux-gnu-as cross-assembler, but it doesn't support the Motorola syntax the original Amiga tools did.
How hard can it be to write a preprocessor that converts vasm mot syntax module compatible assembly to GNU as?!
Turns out, less trivial than I thought.
This is handy for studying ROMs and binary only programs: a Z80 disassembler that tries to identify string data and labels.
"As with everything, learning is 50% jargon and 50% actual learning." https://github.com/FFmpeg/asm-lessons/
Me, looking at the 8008/8080/Z80 instruction sets: "bah, why do you need conditional calls and conditional returns when the conditional jumps are already more than enough?"
Me, coding in 68000: "I really with I had conditional calls and conditional returns, relying on conditional jumps makes the code harder to read than necessary."
I am never happy.
Me, looking at the 8008/8080/Z80 instruction sets: "bah, why do you need conditional calls and conditional returns when the conditional jumps are already more than enough?"
Me, coding in 68000: "I really with I had conditional calls and conditional returns, relying on conditional jumps makes the code harder to read than necessary."
I am never happy.
As I don't have any new project in the pipe, I spent my saturday going back to see if I have progressed in #6502 #assembly, and gave a bit of attention to my #Quicktake for #Apple2 JPEG decoder.
I think I progressed: decoding a Quicktake 200 photo now /only/ takes 190 seconds (3 minutes 10), a 25% improvement and a whole minute less than previously!
As I don't have any new project in the pipe, I spent my saturday going back to see if I have progressed in #6502 #assembly, and gave a bit of attention to my #Quicktake for #Apple2 JPEG decoder.
I think I progressed: decoding a Quicktake 200 photo now /only/ takes 190 seconds (3 minutes 10), a 25% improvement and a whole minute less than previously!
Asm Editor is a web app IDE for learning, developing, and running x86, M68K, RISC-V, and MIPS Assembly code. It features an editor, assembler, and debugger, as well as other tools and learning resources.
Asm Editor is a web app IDE for learning, developing, and running x86, M68K, RISC-V, and MIPS Assembly code. It features an editor, assembler, and debugger, as well as other tools and learning resources.
A space for Bonfire maintainers and contributors to communicate