about summary refs log tree commit diff stats
path: root/ex8.mu
blob: eb013eeb9e2bf3f820ecd3260654ac0ea7cc98c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
# Demo of floating-point
#
# To build a disk image:
#   ./translate ex8.mu             # emits disk.img
# To run:
#   bochs -f bochsrc               # bochsrc loads disk.img
# Set a breakpoint at 0x7c00 and start stepping.

fn main {
  var n/eax: int <- copy 0
  var result/xmm0: float <- convert n
}