I spent the evening analyzing opcode usage in UXN programs.
The most used opcodes are DEO2, JMP2r and ADD2. Almost half of all opcodes are never used in the 22413 LOC that were analyzed. The majority of unused opcodes are return stack variants ("r").
In the table below, the most used opcodes are marked in red, the least used in blue. Opcodes that were never used are shown in light grey.
#uxn
Can Lehmann
in reply to Can Lehmann • • •The analyzed projects are: cccc, drifblim, left, noodle, oquonie, potato, uxnbal and uxn-games
I decided to exclude unit tests and examples, as e.g. in drifblim these would artificially distort the opcode counts.
Can Lehmann
in reply to Can Lehmann • • •Devine Lu Linvega
in reply to Can Lehmann • • •