##############################################################################
#                                                                            #
# IAR Z80/64180 C-Compiler V4.06A/WIN                                        #
#                                                                            #
#       Compile time  =  01/Mar/2026  12:34:54                               #
#       Target option =  Z80                                                 #
#       Memory model  =  banked                                              #
#       Source file   =  e:\projects\player_new\untitled1.c                  #
#       List file     =  e:\projects\player_new\debug\list\untitled1.lst     #
#       Object file   =  e:\projects\player_new\debug\obj\untitled1.r01      #
#       ASM file      =  e:\projects\player_new\debug\list\untitled1.s01     #
#       Command line  =  -v0 -mb -uua -OE:\Projects\player_new\Debug\Obj\    #
#                        -d -e -K -gA -s9 -RCODE                             #
#                        -LE:\Projects\player_new\Debug\List\ -q -t8         #
#                        -AE:\Projects\player_new\Debug\List\                #
#                        -IE:\IAR\EW23\z80\inc\                              #
#                        E:\Projects\player_new\Untitled1.c                  #
#                                                                            #
#                           Copyright 2001 IAR Systems. All rights reserved. #
##############################################################################

   \   0000                    NAME    untitled1(17)
   \   0000                    RSEG    RCODE(0)
   \   0000                    RSEG    IDATA0(0)
   \   0000                    RSEG    CDATA0(0)
   \   0000                    EXTERN  II
   \   0000                    PUBLIC  entered
   \   0000                    PUBLIC  intr
   \   0000                    EXTERN  plays
   \   0000                    EXTERN  pop_all
   \   0000                    EXTERN  push_all
   \   0000                    EXTERN  s
   \   0000                    EXTERN  ?CLZ80B_4_06_L00
   \   0000                    EXTERN  ?BANK_CALL_DIRECT_EXAF_L08
   \   0000                    RSEG    RCODE
      1          
      2          # include "all.h"
      3          
      4          extern AYSongInfo s;
      5          
      6          
      7          extern unsigned char II;
      8          
      9          char entered = 0;
     10          
     11          interrupt void intr (void)
     12          {
   \   0000            intr:
   \   0000  E5                PUSH    HL
   \   0001  F5                PUSH    AF
   \   0002  D9                EXX
   \   0003  E5                PUSH    HL
   \   0004  08                EX      AF,AF'
   \   0005  F5                PUSH    AF
   \   0006  D9                EXX
     13            II=1;         
   \   0007  3E01              LD      A,1
   \   0009  320000            LD      (II),A
     14                  
     15            if (!s.play || entered)        
   \   000C  3A6200            LD      A,(s+98)
   \   000F  B7                OR      A
   \   0010  2827              JR      Z,?0014
   \   0012  3A0000            LD      A,(entered)
   \   0015  B7                OR      A
   \   0016  2021              JR      NZ,?0014
   \   0018            ?0012:
   \   0018            ?0013:
   \   0018            ?0010:
   \   0018            ?0011:
     16                    return;
     17          
     18            entered = 1;  
   \   0018  3E01              LD      A,1
   \   001A  320000            LD      (entered),A
     19            push_all();
   \   001D  3E00              LD      A,BYTE3 push_all
   \   001F  210000            LD      HL,LWRD push_all
   \   0022  CD0000            CALL    LWRD ?BANK_CALL_DIRECT_EXAF_L08
     20            plays();      
   \   0025  3E00              LD      A,BYTE3 plays
   \   0027  210000            LD      HL,LWRD plays
   \   002A  CD0000            CALL    LWRD ?BANK_CALL_DIRECT_EXAF_L08
     21          
     22            pop_all();
   \   002D  3E00              LD      A,BYTE3 pop_all
   \   002F  210000            LD      HL,LWRD pop_all
   \   0032  CD0000            CALL    LWRD ?BANK_CALL_DIRECT_EXAF_L08
     23            entered = 0;
   \   0035  AF                XOR     A
   \   0036  320000            LD      (entered),A
     24          }
   \   0039            ?0014:
   \   0039  D9                EXX
   \   003A  F1                POP     AF
   \   003B  08                EX      AF,AF'
   \   003C  E1                POP     HL
   \   003D  D9                EXX
   \   003E  F1                POP     AF
   \   003F  E1                POP     HL
   \   0040  FB                EI
   \   0041  ED4D              RETI
   \   0000                    RSEG    IDATA0
   \   0000            entered:
   \   0001                    DEFS    1
   \   0000                    RSEG    CDATA0
   \   0000  00                DEFB    0
   \   0001                    END

Errors: none
Warnings: none
Code size: 67
Constant size: 1
Static variable size: Data(1) Iram(0)

