Skip to content

Commit

Permalink
Format assembly in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
james-pre committed Dec 14, 2024
1 parent a2748df commit 892c500
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@ You can tokenize some text using `tokenize` and providing an iterable (e.g. arra
```ts
import { tokenize } from 'xcompile';

const source = `# This is AT&T assembly
mov $100, %eax # move 100 into eax
mul $2, %eax # multiply the value in eax by 2
mov %eax,0x1000 # move eax's value into memory
nop # do nothing
const source = `
# This is AT&T assembly
mov $100, %eax # move 100 into eax
mul $2, %eax # multiply the value in eax by 2
mov %eax,0x1000 # move eax's value into memory
nop # do nothing
`;

const literals = [
Expand Down

0 comments on commit 892c500

Please sign in to comment.