collab/polyglot-riscv-arm

what if the same machine code was valid riscv and arm asm

git clone https://git.julia.blue/collab/polyglot-riscv-arm

Jonathan Dönszelmannwebsite start885cc4e

main
794 B41 linesraw
1<!doctype html>
2<html lang="en">
3
4<head>
5    <meta charset="utf-8" />
6    <title>Polyglot Arm Riscv</title>
7
8    <script defer src="main.js"></script>
9    <link rel="stylesheet" href="main.css" />
10</head>
11
12<body>
13    <main>
14        <h1>
15            Polyglot Arm/Riscv Programs
16        </h1>
17
18        <div all-instructions>
19            <canvas canvas width=256 height=256>
20
21            </canvas>
22
23            <div encoded-wrapper>
24                Encoded: 0x
25                <span encoded></span>
26            </div>
27
28            <div status-wrapper>
29                Status:
30                <span status></span>
31            </div>
32
33            <div decoded-wrapper>
34                Disassembly:
35                <span decoded></span>
36            </div>
37        </div>
38    </main>
39</body>
40
41</html>