OpenCores
URL https://opencores.org/ocsvn/diogenes/diogenes/trunk

Subversion Repositories diogenes

[/] [diogenes/] [trunk/] [old/] [bootloader.asm] - Blame information for rev 118

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 118 fellnhofer
  ldi   l2, 0x80
2
  lsi   l2, 0xff   @ start of user program
3
  ldi   h1, 1      @  toggle bit (hi low)
4
 
5
1: @ wait for byte
6
  ldio  l3, [l0]
7
  ldi   h0, 2
8
  and   l4, l3, h0
9
  brz   l4, :1
10
  ldi   h0, 0x41
11
 
12
 
13
  ldio  l3, [h0]    @ uart rcv
14
  ldi   h0, 0x40
15
  stio  l3, [h0]    @ uart echo
16
  ldi   h0, 0x00
17
  stio  l3, [h0]    @ leds
18
  adi   l2, 1
19
  stio  l3, [l2]
20
  brnz  l4, :1
21
  nop
22
 
23
 
24
 
25
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.