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

Subversion Repositories ssbcc

[/] [ssbcc/] [trunk/] [core/] [9x8/] [tb/] [arch/] [arch-calls.s] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 sinclairrf
; Copyright 2012, Sinclair R.F., Inc.
2
;
3
; Ensure that the high-order data bits for function calls are correctly stored/recalled.
4
 
5
.main
6
 
7
  ; Fill half of the code space so that we're in the upper half of the address space.
8
  .jump(skip_fill)
9
  0*${C_OPCODE_SIZE/2-3}
10
  :skip_fill
11
 
12
  ; Call a function in the upper half of memory
13
  .call(upper_function)
14
 
15
  ; terminate the simulation
16
  .outstrobe(O_DONE_STROBE)
17
 
18
  :infinite .jump(infinite)
19
 
20
.function upper_function
21
  .return

powered by: WebSVN 2.1.0

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