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

Subversion Repositories diogenes

[/] [diogenes/] [trunk/] [examples/] [video.asm] - Blame information for rev 236

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 224 fellnhofer
@ l2 : current address for memwrites
2
@ h1 : remaining bytes to write
3
begin:
4
  ldi   l2, 0xc0
5
  lsi   l2, 0x00     @ address of vram
6
 
7
  ldi   h1, 0x01
8
  shi   h1, 13       @ vram is 8192 byte
9
 
10
1: @ wait for byte
11
  ldi   l0, 0x80     @ uart status address
12
  ldio  l3, [l0]
13
  ldi   h0, 2        @ uart data ready bit
14
  and   l4, l3, h0
15
  brz   l4, :1
16
  ldi   h0, 0x81     @ uart data address
17
 
18
  ldio  l3, [h0]     @ uart rcv
19
  nop
20
 
21
  stio  l3, [l2]     @ write instruction to program-mem
22
 
23
  adi   h1, -1
24
  brnz  h1, :1
25
  adi   l2, 1
26
  brz   h1, :begin
27
  nop
28
@@ vram loaded
29
  stop
30
 
31
 
32
 

powered by: WebSVN 2.1.0

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