Tag: ledum

Ledum Definers Released

Written by Dominik Pantůček on 2026-07-16

racketledum

Last time we have touched the topic of designing custom CPU explicitly, we were already preparing the whole package for release. Today, we introduce the Ledum Definers package which allows anyone to design an Instruction Set Architecture and get an assembler, disassembler and components for building emulators for free.

...

Custom Macros Expander

Written by Dominik Pantůček on 2026-05-21

racketledum

A custom splicing expander alone is not very useful on its own. Without a way to define custom macros that will be expanded not by the default Racket expander but by our custom expander it cannot do much. Now it is time to define an expander for custom macros.

...

Custom Splicing Expander

Written by Dominik Pantůček on 2026-05-07

racketledum

From time to time you need a custom expander. Like when you need to perform some analysis or optimization on an already expanded code before you pass it on to the compiler. Read on to see a rather simple example of such expander.

...

Dynamic Mutable Bit Slices

Written by Dominik Pantůček on 2026-02-26

racketledum

Designing a brand new CPU is not only about opcodes, it is also about its internal workings. One such internal thing is how certain multi-bit values can be split into different single and multi-bit slices.

...

Opcode Mask Pict

Written by Dominik Pantůček on 2026-02-12

racketledum

In previous post we have introduced a nice way to encode machine opcodes and their arguments as a bit mask. What about visualizing such opcodes? There surely is a way to include nice pictures to aid with reading the bit masks.

...