#!/bin/sh
. Common

asm "LCALL" <<EOF
	lcall	doret
	halt
	halt
	halt
doret:
	ret
	halt
EOF
sim <<EOF
run
.
@
EOF
expect <<EOF
HALT
0x4 4
0x1e 30
EOF
