2 ; Ullrich von Bassewitz, 05.08.1998
4 ; CC65 runtime: Push ints onto the stack
8 ; push/pop things on stack
10 .export push0, push1, push2, push3, push4, push5
11 .export push6, push7, pusha0, pushaFF, pushax
12 .export pusha, pushaysp, pushc0, pushc1, pushc2
37 ; This function is used *a lot*, so don't call any subroutines here.
38 ; Beware: The value in ax must not be changed by this function!
39 ; Beware^2: The optimizer knows about the value of Y after the function
49 sta (sp),y ; store lo byte
53 sta (sp),y ; store hi byte
60 bne @L0 ; Branch always
62 ; Push for chars, same warning as above: The optimizer expects the value
63 ; 0 in the Y register after this function.