
#define P1DDR  0xfe30:16
#define P1DR   0x00:8 /* same as 0xff00:16 */
#define P1DATA 0xb0:8 /* same as 0xffb0:16 */
	
	.text
	.org 0
	.h8300s
	
	.globl start
start:
	mov.b #0xa0, r0l   /* 7 + 5 are outputs (USER LED + PMODE pin) */
	mov.b #0x00, r0h   /* bit 5 is disabled */
	mov.b r0l, @P1DDR
	mov.b r0h, @P1DR

	.globl loop_forever
loop_forever:
	nop
	jmp loop_forever	

