z80dasm-1.1.5/0002755000175000017500000000000013141302425010002 500000000000000z80dasm-1.1.5/Makefile.in0000644000175000017500000005674013141301313011774 00000000000000# Makefile.in generated by automake 1.14.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = . DIST_COMMON = INSTALL NEWS README AUTHORS ChangeLog \ $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/configure $(am__configure_deps) \ $(srcdir)/config.h.in COPYING compile depcomp install-sh \ missing ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(install_sh) -d CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ cscope distdir dist dist-all distcheck am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \ $(LISP)config.h.in # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags CSCOPE = cscope DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ if test -d "$(distdir)"; then \ find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -rf "$(distdir)" \ || { sleep 5 && rm -rf "$(distdir)"; }; \ else :; fi am__post_remove_distdir = $(am__remove_distdir) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best DIST_TARGETS = dist-gzip distuninstallcheck_listfiles = find . -type f -print am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EXEEXT = @EXEEXT@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = src \ test EXTRA_DIST = autogen.sh all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: am--refresh: Makefile @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): config.h: stamp-h1 @test -f $@ || rm -f stamp-h1 @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h $(srcdir)/config.h.in: $(am__configure_deps) ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscope: cscope.files test ! -s cscope.files \ || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) clean-cscope: -rm -f cscope.files cscope.files: clean-cscope cscopelist cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags -rm -f cscope.out cscope.in.out cscope.po.out cscope.files distdir: $(DISTFILES) $(am__remove_distdir) test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done -test -n "$(am__skip_mode_fix)" \ || find "$(distdir)" -type d ! -perm -755 \ -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__post_remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 $(am__post_remove_distdir) dist-lzip: distdir tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz $(am__post_remove_distdir) dist-xz: distdir tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz $(am__post_remove_distdir) dist-tarZ: distdir @echo WARNING: "Support for shar distribution archives is" \ "deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__post_remove_distdir) dist-shar: distdir @echo WARNING: "Support for distribution archives compressed with" \ "legacy program 'compress' is deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__post_remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__post_remove_distdir) dist dist-all: $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' $(am__post_remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lz*) \ lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ *.tar.xz*) \ xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir) chmod u+w $(distdir) mkdir $(distdir)/_build $(distdir)/_inst chmod a-w $(distdir) test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build \ && ../configure \ $(AM_DISTCHECK_CONFIGURE_FLAGS) \ $(DISTCHECK_CONFIGURE_FLAGS) \ --srcdir=.. --prefix="$$dc_install_base" \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ && cd "$$am__cwd" \ || exit 1 $(am__post_remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @test -n '$(distuninstallcheck_dir)' || { \ echo 'ERROR: trying to run $@ with an empty' \ '$$(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ $(am__cd) '$(distuninstallcheck_dir)' || { \ echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile config.h installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-hdr distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(am__recursive_targets) all install-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ am--refresh check check-am clean clean-cscope clean-generic \ cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \ dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \ distcheck distclean distclean-generic distclean-hdr \ distclean-tags distcleancheck distdir distuninstallcheck dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs installdirs-am \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \ uninstall-am test: $(MAKE) -C test test .PHONY: test # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: z80dasm-1.1.5/config.h.in0000644000175000017500000000116113141301402011734 00000000000000/* config.h.in. Generated from configure.ac by autoheader. */ /* Name of package */ #undef PACKAGE /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Define to the full name of this package. */ #undef PACKAGE_NAME /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the home page for this package. */ #undef PACKAGE_URL /* Define to the version of this package. */ #undef PACKAGE_VERSION /* Version number of package */ #undef VERSION z80dasm-1.1.5/README0000644000175000017500000000405513127235430010611 00000000000000 z80dasm ======= Disassembler for the Zilog Z80 microprocessor and compatibles. It can be used to reverse engineer programs and operating systems for 1980's microcomputers using this processor architecture (for example Sinclar ZX80, ZX81, Spectrum, Galaksija and others). Generated assembly code can be assembled back with any of the following: zasm - Z80 assembler by Günter Woigk z80asm - Available at http://savannah.nongnu.org/projects/z80asm/ or the original Zilog Z80 assembler. z80dasm is based largely on dz80 3.0, written by Jan Panteltje (available at http://panteltje.com/panteltje/z80/index.html). z80dasm was extensively tested, a lot of bugs were fixed and a more UNIX-like command line interface was added. See NEWS file for a summary of changes. Supported platforms =================== In theory any UNIX-like operating system. z80dasm is developed on Debian GNU/Linux. Dependencies ============ None. Usage ===== See man page or run "z80dasm -h". Installation ============ To build and install z80dasm: $ cd z80dasm-x.x.x $ ./autogen.sh (only if building from git) $ ./configure $ make $ make test (if you want to be sure it works) $ make install (as root) License ======= Copyright (C) 1994-2007 Jan Panteltje Copyright (C) 2007-2017 Tomaz Solc This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. z80dasm-1.1.5/aclocal.m40000644000175000017500000012364213141301311011561 00000000000000# generated automatically by aclocal 1.14.1 -*- Autoconf -*- # Copyright (C) 1996-2013 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, [m4_warning([this file was generated for autoconf 2.69. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically 'autoreconf'.])]) # Copyright (C) 2002-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.14' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. m4_if([$1], [1.14.1], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) # _AM_AUTOCONF_VERSION(VERSION) # ----------------------------- # aclocal traces this macro to find the Autoconf version. # This is a private macro too. Using m4_define simplifies # the logic in aclocal, which can simply ignore this definition. m4_define([_AM_AUTOCONF_VERSION], []) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.14.1])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to # '$srcdir', '$srcdir/..', or '$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is '.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl # Expand $ac_aux_dir to an absolute path. am_aux_dir=`cd "$ac_aux_dir" && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ([2.52])dnl m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE])dnl AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl m4_define([_AM_COND_VALUE_$1], [$2])dnl if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], [$1], [CXX], [depcc="$CXX" am_compiler_list=], [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], [$1], [UPC], [depcc="$UPC" am_compiler_list=], [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi am__universal=false m4_case([$1], [CC], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac], [CXX], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac]) for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES. AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE([dependency-tracking], [dnl AS_HELP_STRING( [--enable-dependency-tracking], [do not reject slow dependency extractors]) AS_HELP_STRING( [--disable-dependency-tracking], [speeds up one-time build])]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH])dnl _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl AC_SUBST([am__nodep])dnl _AM_SUBST_NOTMAKE([am__nodep])dnl ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [{ # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named 'Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running 'make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "$am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` AS_MKDIR_P([$dirpart/$fdir]) # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking # is enabled. FIXME. This creates each '.P' file that we will # need in order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC]) [_AM_PROG_CC_C_O ]) # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.65])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl # test to see if srcdir already configured if test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [AC_DIAGNOSE([obsolete], [$0: two- and three-arguments forms are deprecated.]) m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if( m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), [ok:ok],, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) AM_MISSING_PROG([AUTOCONF], [autoconf]) AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) AM_MISSING_PROG([AUTOHEADER], [autoheader]) AM_MISSING_PROG([MAKEINFO], [makeinfo]) AC_REQUIRE([AM_PROG_INSTALL_SH])dnl AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # AC_SUBST([mkdir_p], ['$(MKDIR_P)']) # We need awk for the "check" target. The system "awk" is bad on # some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES([CC])], [m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES([CXX])], [m4_define([AC_PROG_CXX], m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES([OBJC])], [m4_define([AC_PROG_OBJC], m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], [_AM_DEPENDENCIES([OBJCXX])], [m4_define([AC_PROG_OBJCXX], m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl ]) AC_REQUIRE([AM_SILENT_RULES])dnl dnl The testsuite driver may need to know about EXEEXT, so add the dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. AC_CONFIG_COMMANDS_PRE(dnl [m4_provide_if([_AM_COMPILER_EXEEXT], [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is # actually supported "in the wild" to an acceptable degree. # See automake bug#10828. # To make any issue more visible, cause the running configure to be aborted # by default if the 'rm' program in use doesn't match our expectations; the # user can still override this though. if rm -f && rm -fr && rm -rf; then : OK; else cat >&2 <<'END' Oops! Your 'rm' program seems unable to run without file operands specified on the command line, even when the '-f' option is present. This is contrary to the behaviour of most rm programs out there, and not conforming with the upcoming POSIX standard: Please tell bug-automake@gnu.org about your system, including the value of your $PATH and any error possibly output before this message. This can help us improve future automake versions. END if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then echo 'Configuration will proceed anyway, since you have set the' >&2 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 echo >&2 else cat >&2 <<'END' Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM to "yes", and re-run configure. END AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) fi fi ]) dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further dnl mangled by Autoconf and run in a shell conditional statement. m4_define([_AC_COMPILER_EXEEXT], m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_arg=$1 _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl if test x"${install_sh}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi AC_SUBST([install_sh])]) # Copyright (C) 2003-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from 'make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it is modern enough. # If it is, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= AC_MSG_WARN(['missing' script is too old or missing]) fi ]) # -*- Autoconf -*- # Obsolete and "removed" macros, that must however still report explicit # error messages when used, to smooth transition. # # Copyright (C) 1996-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. AC_DEFUN([AM_CONFIG_HEADER], [AC_DIAGNOSE([obsolete], ['$0': this macro is obsolete. You should use the 'AC][_CONFIG_HEADERS' macro instead.])dnl AC_CONFIG_HEADERS($@)]) AC_DEFUN([AM_PROG_CC_STDC], [AC_PROG_CC am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc AC_DIAGNOSE([obsolete], ['$0': this macro is obsolete. You should simply use the 'AC][_PROG_CC' macro instead. Also, your code should no longer depend upon 'am_cv_prog_cc_stdc', but upon 'ac_cv_prog_cc_stdc'.])]) AC_DEFUN([AM_C_PROTOTYPES], [AC_FATAL([automatic de-ANSI-fication support has been removed])]) AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # -------------------- # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), [1])]) # _AM_SET_OPTIONS(OPTIONS) # ------------------------ # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Copyright (C) 1999-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_PROG_CC_C_O # --------------- # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC # to automatically call this. AC_DEFUN([_AM_PROG_CC_C_O], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([compile])dnl AC_LANG_PUSH([C])dnl AC_CACHE_CHECK( [whether $CC understands -c and -o together], [am_cv_prog_cc_c_o], [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) # Make sure it works both with $CC and with simple cc. # Following AC_PROG_CC_C_O, we do the test twice because some # compilers refuse to overwrite an existing .o file with -o, # though they will create one. am_cv_prog_cc_c_o=yes for am_i in 1 2; do if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ && test -f conftest2.$ac_objext; then : OK else am_cv_prog_cc_c_o=no break fi done rm -f core conftest* unset am_i]) if test "$am_cv_prog_cc_c_o" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" fi AC_LANG_POP([C])]) # For backward compatibility. AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) # Copyright (C) 2001-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_RUN_LOG(COMMAND) # ------------------- # Run COMMAND, save the exit status in ac_status, and log it. # (This has been adapted from Autoconf's _AC_RUN_LOG macro.) AC_DEFUN([AM_RUN_LOG], [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD (exit $ac_status); }]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[[\\\"\#\$\&\'\`$am_lf]]*) AC_MSG_ERROR([unsafe absolute working directory name]);; esac case $srcdir in *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; esac # Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi if test "$[2]" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT([yes]) # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi AC_CONFIG_COMMANDS_PRE( [AC_MSG_CHECKING([that generated files are newer than configure]) if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi AC_MSG_RESULT([done])]) rm -f conftest.file ]) # Copyright (C) 2009-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_SILENT_RULES([DEFAULT]) # -------------------------- # Enable less verbose build rules; with the default set to DEFAULT # ("yes" being less verbose, "no" or empty being verbose). AC_DEFUN([AM_SILENT_RULES], [AC_ARG_ENABLE([silent-rules], [dnl AS_HELP_STRING( [--enable-silent-rules], [less verbose build output (undo: "make V=1")]) AS_HELP_STRING( [--disable-silent-rules], [verbose build output (undo: "make V=0")])dnl ]) case $enable_silent_rules in @%:@ ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; esac dnl dnl A few 'make' implementations (e.g., NonStop OS and NextStep) dnl do not support nested variable expansions. dnl See automake bug#9928 and bug#10237. am_make=${MAKE-make} AC_CACHE_CHECK([whether $am_make supports nested variables], [am_cv_make_support_nested_variables], [if AS_ECHO([['TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi]) if test $am_cv_make_support_nested_variables = yes; then dnl Using '$V' instead of '$(V)' breaks IRIX make. AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AC_SUBST([AM_V])dnl AM_SUBST_NOTMAKE([AM_V])dnl AC_SUBST([AM_DEFAULT_V])dnl AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl AC_SUBST([AM_DEFAULT_VERBOSITY])dnl AM_BACKSLASH='\' AC_SUBST([AM_BACKSLASH])dnl _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl ]) # Copyright (C) 2001-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor 'install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in "make install-strip", and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using 'strip' when the user # run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the 'STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Copyright (C) 2006-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) # AM_SUBST_NOTMAKE(VARIABLE) # -------------------------- # Public sister of _AM_SUBST_NOTMAKE. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of 'v7', 'ustar', or 'pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar # AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AC_SUBST([AMTAR], ['$${TAR-tar}']) # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' m4_if([$1], [v7], [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], [m4_case([$1], [ustar], [# The POSIX 1988 'ustar' format is defined with fixed-size fields. # There is notably a 21 bits limit for the UID and the GID. In fact, # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 # and bug#13588). am_max_uid=2097151 # 2^21 - 1 am_max_gid=$am_max_uid # The $UID and $GID variables are not portable, so we need to resort # to the POSIX-mandated id(1) utility. Errors in the 'id' calls # below are definitely unexpected, so allow the users to see them # (that is, avoid stderr redirection). am_uid=`id -u || echo unknown` am_gid=`id -g || echo unknown` AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) if test $am_uid -le $am_max_uid; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) _am_tools=none fi AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) if test $am_gid -le $am_max_gid; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) _am_tools=none fi], [pax], [], [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Go ahead even if we have the value already cached. We do so because we # need to set the values for the 'am__tar' and 'am__untar' variables. _am_tools=${am_cv_prog_tar_$1-$_am_tools} for _am_tool in $_am_tools; do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works. rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR z80dasm-1.1.5/Makefile.am0000644000175000017500000000013412743450416011765 00000000000000SUBDIRS = src \ test EXTRA_DIST = autogen.sh test: $(MAKE) -C test test .PHONY: test z80dasm-1.1.5/autogen.sh0000755000175000017500000000007612746655163011750 00000000000000#! /bin/sh autoreconf -vi echo "You must now run configure" z80dasm-1.1.5/COPYING0000644000175000017500000004312212743450416010770 00000000000000 GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. z80dasm-1.1.5/NEWS0000644000175000017500000000520113141301034010410 00000000000000z80dasm 1.1.5 ============= Added support for many undocumented instructions from the list at http://www.z80.info/z80undoc.htm, such as instructions involving IXL, and IXH registers. By default, all undocumented instructions are now disassembled as defbs with the instruction name in a comment due to missing or buggy support in z80asm. A new --undoc option has been added to change this behavior. Disassembly of "ED xx" instructions appearing at the end of input has been fixed. z80dasm 1.1.4 ============= Added options for unlabeled blocks and blocks that have a label at the last byte (instead of at one after the last byte) When a block was inserted in the middle of another block, the linked list of blocks got corrupted, which could lead to wrong disassembly in some cases. z80dasm 1.1.3 ============= Target addresses of relative branches weren't properly wrapped around the boundaries of 16-bit address space, resulting in missing labels for such branches and stack corruption due to a buffer overflow on 64-bit architectures. Thanks to Eric Smith for reporting this bug and providing a patch. z80dasm 1.1.2 ============= Added missing files to the tar file. z80dasm 1.1.1 ============= Fixed bug in label creation: a label was created for every 0xdd command. z80dasm 1.1.0 ============= Rewritten symbol table routines. Support for input symbol files ('-S' option). Removed unnecessary and badly documented '-r' option. Better comments in the output symbol file regarding where in the assembly source a particular symbol is used. Support for spliting binary file into data and code blocks. Automatic labels that are first seen in a "call" instruction are named "sub_XXXXh" instead of "lXXXXh". z80dasm 1.0.1 ============= Various Debian package related changes. Unprintable characters are replaced by ASCII dot when using '-t' option (similar to hexdump). Some minor bug fixes. Summary of changes from dz80 3.0 to z80dasm 1.0.0 ================================================= dz80dat.c: Fixed table entry for "2c" opcode (inc l). dz80.c: Added undocumented instruction "sli" ("cb 30") to the opcode decoding logic. Replaced command-line handling code with calls to code in cmdline.c. Made Zilog-assembler compatiblity mode run-time configurable. Fixed incorrect handling of sign bit for offsets for relative jumps ("jr" and "djnz" instructions) Fixed handling of unknown or partial opcodes (these are now included in the output with "defb" assembler directives) New function for error reporting in cmdline.c Disassembler output from pass 1 and 2 redirected from standard output to temporary files. z80dasm-1.1.5/configure.ac0000644000175000017500000000034213141301202012175 00000000000000AC_PREREQ(2.53) # don't forget to tag files in CVS on release! AC_INIT(z80dasm, 1.1.5, tomaz.solc@tablix.org) AM_INIT_AUTOMAKE AM_CONFIG_HEADER(config.h) AC_PROG_CC AC_OUTPUT( Makefile src/Makefile test/Makefile ) z80dasm-1.1.5/src/0002755000175000017500000000000013141302425010571 500000000000000z80dasm-1.1.5/src/symtab.h0000644000175000017500000000552412743450417012201 00000000000000/* Copyright (C) 2007-2012 Tomaz Solc */ /* This program is free software; you can redistribute it and/or modify */ /* it under the terms of the GNU General Public License as published by */ /* the Free Software Foundation; either version 2 of the License, or */ /* (at your option) any later version. */ /* This program is distributed in the hope that it will be useful, */ /* but WITHOUT ANY WARRANTY; without even the implied warranty of */ /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */ /* GNU General Public License for more details. */ /* You should have received a copy of the GNU General Public License */ /* along with this program; if not, write to the Free Software */ /* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ enum referencetype { undef, jpdest, /* used as a destination for a long jump */ jrdest, /* used as destination for a short jump */ djdest, /* used in a djnz instruction */ cldest, /* used as a call address */ vrbyte, /* used as an address for 8bit load */ vrword, /* used as an address for 16bit load */ cstadd, /* used as a 16bit immediate value */ cstdfw /* used in a defw directive */ }; struct symbol { char *name; int automatic; int val; /* 1 if symbol is a label (i.e. is aligned with instructions) */ int label; /* Any comment that should be printed out before symbol definition */ char *comment; /* When printing symbol definitions for symbols that have the same * value, put those with higher weight at the bottom. */ int weight; /* Length of the data structure the symbol refers to (currently this * means the length of instruction that follows the label) */ int range; /* 1 if symbol is defined in a symbol file included by an "include" * directive */ int included; struct reference *ref; struct symbol *prev; struct symbol *next; }; struct reference { int addr; enum referencetype type; struct reference *next; }; /* Maximum number of top level include directives */ #define MAX_INCLUDE_TOP 128 /* Maximum number of nested include directives */ #define MAX_INCLUDE_LEVEL 128 extern struct symbol *symbols; struct symbol *symbol_find(int addr); struct symbol *symbol_find_next(int val, struct symbol *cur); struct symbol *symbol_find_range(int val); struct symbol *symbol_new(char *name, int val, int weight, int included); struct symbol *symbol_newref(int addr, int ref, enum referencetype type); int symbol_setlabel(int val, int range); void symbol_remove_nonlabels(); int symbol_export(FILE *f); int symbol_export_nonlabels(FILE *f); void symbol_export_includes(FILE *f); int symbol_load_file(char *filename, int level); int symbol_load_line(char *line, char **name, int *val, int level); z80dasm-1.1.5/src/Makefile.in0000644000175000017500000005031113141301313012547 00000000000000# Makefile.in generated by automake 1.14.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : bin_PROGRAMS = z80dasm$(EXEEXT) subdir = src DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/depcomp ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" PROGRAMS = $(bin_PROGRAMS) am_z80dasm_OBJECTS = dz80.$(OBJEXT) dz80dat.$(OBJEXT) table.$(OBJEXT) \ cmdline.$(OBJEXT) symtab.$(OBJEXT) symload.$(OBJEXT) \ blocks.$(OBJEXT) utils.$(OBJEXT) z80dasm_OBJECTS = $(am_z80dasm_OBJECTS) z80dasm_LDADD = $(LDADD) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(z80dasm_SOURCES) DIST_SOURCES = $(z80dasm_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } man1dir = $(mandir)/man1 NROFF = nroff MANS = $(man_MANS) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EXEEXT = @EXEEXT@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AM_CFLAGS = -Wall z80dasm_SOURCES = dz80.c \ dz80.h \ dz80dat.c \ table.c \ cmdline.c \ symtab.c \ symload.c \ symtab.h \ blocks.c \ blocks.h \ utils.c \ utils.h man_MANS = z80dasm.1 EXTRA_DIST = z80dasm.1 all: all-am .SUFFIXES: .SUFFIXES: .c .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu src/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p \ ; then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' \ -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' \ `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) z80dasm$(EXEEXT): $(z80dasm_OBJECTS) $(z80dasm_DEPENDENCIES) $(EXTRA_z80dasm_DEPENDENCIES) @rm -f z80dasm$(EXEEXT) $(AM_V_CCLD)$(LINK) $(z80dasm_OBJECTS) $(z80dasm_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/blocks.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cmdline.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dz80.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dz80dat.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/symload.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/symtab.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/table.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/utils.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` install-man1: $(man_MANS) @$(NORMAL_INSTALL) @list1=''; \ list2='$(man_MANS)'; \ test -n "$(man1dir)" \ && test -n "`echo $$list1$$list2`" \ || exit 0; \ echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \ $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \ { for i in $$list1; do echo "$$i"; done; \ if test -n "$$list2"; then \ for i in $$list2; do echo "$$i"; done \ | sed -n '/\.1[a-z]*$$/p'; \ fi; \ } | while read p; do \ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; echo "$$p"; \ done | \ sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ sed 'N;N;s,\n, ,g' | { \ list=; while read file base inst; do \ if test "$$base" = "$$inst"; then list="$$list $$file"; else \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \ fi; \ done; \ for i in $$list; do echo "$$i"; done | $(am__base_list) | \ while read files; do \ test -z "$$files" || { \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \ done; } uninstall-man1: @$(NORMAL_UNINSTALL) @list=''; test -n "$(man1dir)" || exit 0; \ files=`{ for i in $$list; do echo "$$i"; done; \ l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ sed -n '/\.1[a-z]*$$/p'; \ } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir) ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) $(MANS) installdirs: for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-binPROGRAMS clean-generic mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-man install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-binPROGRAMS install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-man1 install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS uninstall-man uninstall-man: uninstall-man1 .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean \ clean-binPROGRAMS clean-generic cscopelist-am ctags ctags-am \ distclean distclean-compile distclean-generic distclean-tags \ distdir dvi dvi-am html html-am info info-am install \ install-am install-binPROGRAMS install-data install-data-am \ install-dvi install-dvi-am install-exec install-exec-am \ install-html install-html-am install-info install-info-am \ install-man install-man1 install-pdf install-pdf-am install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-compile mostlyclean-generic pdf pdf-am \ ps ps-am tags tags-am uninstall uninstall-am \ uninstall-binPROGRAMS uninstall-man uninstall-man1 # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: z80dasm-1.1.5/src/symload.c0000644000175000017500000001024712743450417012343 00000000000000/* Copyright (C) 2007-2012 Tomaz Solc */ /* This program is free software; you can redistribute it and/or modify */ /* it under the terms of the GNU General Public License as published by */ /* the Free Software Foundation; either version 2 of the License, or */ /* (at your option) any later version. */ /* This program is distributed in the hope that it will be useful, */ /* but WITHOUT ANY WARRANTY; without even the implied warranty of */ /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */ /* GNU General Public License for more details. */ /* You should have received a copy of the GNU General Public License */ /* along with this program; if not, write to the Free Software */ /* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include #include #include #include #include "symtab.h" #include "dz80.h" #include "utils.h" char *include[MAX_INCLUDE_TOP]; int includenum=0; void symbol_export_includes(FILE *f) { int n; for(n=0;n=MAX_INCLUDE_TOP) { msg(0, "Error: Too many include directives\n"); return -1; } include[includenum]=strdup(filename); includenum++; } else if(level>MAX_INCLUDE_LEVEL) { msg(0, "Error: Too many nested include directives\n"); return -1; } f=fopen(filename, "r"); if(f==NULL) { msg(0, "Error: Cannot open '%s': %s\n", filename, strerror(errno)); return -1; } lineno=1; while(fgets(line, MAX_LINE_LEN, f)!=NULL) { r=symbol_load_line(line, &name, &val, level); if(r<0) { msg(0, " at line %d of '%s'\n", lineno, filename); fclose(f); return -1; } if(r==1) { symbol_new(name, val, 50, level!=0); free(name); } lineno++; } fclose(f); return 0; } int symbol_include_d(char *param, int level) { char *filename; int error; error=0; if(strlen(param)<3) { error=1; } if(param[0]!='"' || param[strlen(param)-1]!='"') { error=1; } if(error) { msg(0, "Error: File name expected after 'include' " "directive\n"); return -1; } param[strlen(param)-1]=0; filename=¶m[1]; return(symbol_load_file(filename,level+1)); } /* Returns: Negative number means syntax error, 0 ignored line, 1 found a * symbol definition */ int symbol_load_line(char *line, char **name, int *val, int level) { int r; char *linec; char *named; int vald; /* Following syntax is supported: * symbol_name: equ symbol_value * include "filename" */ #define MAX_TOKENS 3 char *tokens[MAX_TOKENS]; int num_tokens; /* First, remove any comments on the line. Everything past a ';' is * ignored */ if(line[0]==';') { return 0; } else { linec=strtok(line, ";"); } if(linec==NULL) return 0; /* empty line */ num_tokens=split_line(line, tokens, MAX_TOKENS, " \t\r\n"); if(num_tokens==0) return 0; /* empty line */ if(num_tokens==-1) { /* too many tokens */ msg(0, "Error: Syntax error\n"); return -1; } if(!strcmp(tokens[0], "include")) { if(num_tokens<2) { msg(0, "Error: File name expected after 'include' " "directive\n"); return -1; } return symbol_include_d(tokens[1], level); } /* Not a directive... */ named=tokens[0]; if(named[strlen(named)-1]!=':') { /* ...and not a label? */ msg(0, "Error: ':' expected after symbol name '%s'\n", named); return -1; } named[strlen(named)-1]=0; if(num_tokens<3) { msg(0, "Error: 'equ symbol_value' expected after label name " "'%s'\n", named); return -1; } if(strcmp(tokens[1], "equ")) { msg(0, "Error: 'equ' expected after label name '%s'\n", named); return -1; } r=sscanf(tokens[2], "%i", &vald); if(r!=1) { msg(0, "Error: Invalid symbol value '%s'\n", tokens[2]); return -1; } *name=strdup(named); *val=vald; return 1; } z80dasm-1.1.5/src/utils.c0000644000175000017500000000163412743450417012033 00000000000000#include #include #include #include #include /* This function splits string "line" into separate tokens, delimited by * characters in string "delimiters" (see strtok). Maximum "maxlen" tokens * are written into array. If there are more that "maxlen" tokens on the line, * this function returns -1. Otherwise it returns the number of tokens. */ int split_line(char *line, char **array, int maxlen, char *delimiters) { char *tok; int numtok; numtok=0; if(line==NULL) { /* empty line */ return 0; } while(1) { if(numtok==0) { tok=strtok(line, delimiters); } else { tok=strtok(NULL, delimiters); } if(tok==NULL) { return numtok; } if(numtok>=maxlen) return -1; array[numtok]=tok; numtok++; } } /* Returns file size in bytes */ size_t file_len(char *path) { struct stat st; stat(path, &st); return(st.st_size); } z80dasm-1.1.5/src/utils.h0000644000175000017500000000014512743450417012034 00000000000000int split_line(char *line, char **array, int maxlen, char *delimiters); size_t file_len(char *path); z80dasm-1.1.5/src/dz80.h0000644000175000017500000000140113127235430011446 00000000000000#include #define MAX_LINE_LEN 1024 struct comm{ char *com1; char *com2; int bytes; int type; int proc; }; extern int a_address; extern int a_labels; extern int a_source; extern int a_undoc; extern int a_org; extern int a_zilog; extern char *a_input; extern char *a_output; extern char *a_symoutput; extern char *a_syminput; extern char *a_blockfile; int tosymtab(int *ia, unsigned int prc); void cmdline(int argc, char **argv); int msg(int level, const char *format, ...); /* from dz80dat.c */ extern const char *rarg[]; extern const struct comm comtab[]; extern const char *ed40[]; extern const char *ed50[]; extern const char *ed60[]; extern const char *ed70[]; extern const char *eda0[]; extern const char *edb0[]; extern const char *ddfd[]; z80dasm-1.1.5/src/Makefile.am0000644000175000017500000000041412746655163012566 00000000000000AM_CFLAGS = -Wall bin_PROGRAMS = z80dasm z80dasm_SOURCES = dz80.c \ dz80.h \ dz80dat.c \ table.c \ cmdline.c \ symtab.c \ symload.c \ symtab.h \ blocks.c \ blocks.h \ utils.c \ utils.h man_MANS = z80dasm.1 EXTRA_DIST = z80dasm.1 z80dasm-1.1.5/src/z80dasm.10000644000175000017500000001230413141302215012054 00000000000000.TH Z80DASM 1 2007-06-14 "Tomaz Solc" "Z80 disassembler User's manual" .SH NAME z80dasm \- Z80 assembly generating disassembler .SH SYNOPSIS .B z80dasm [ .I options ] .I file .SH DESCRIPTION .B z80dasm disassembles a binary file containing Z80 machine code into Z80 assembly language source (including a number of undocumented opcodes). It can try to guess locations of labels in the code or the labels can be specified by hand in the form of a symbol file. If given proper information the disassembler can also split the binary file into code and data sections of several different types. .P Generated source file can be assembled back into the original binary using z80asm, zasm or the original Zilog assembler (when the .B \-\-zilog option was used). .SH OPTIONS .TP .B \-a, \-\-address Print the address of the memory location corresponding to each line of assembly code in a comment at the end of the line. .TP .B \-b, \-\-block-def=FILE Read block information from a file. If this option is not specified the default is for the entire file to contain machine code. See .B BLOCK FILE below. .TP .B \-g, \-\-origin=ORG Specify the start address of the binary code being disassembled. A corresponding .I org directive is generated in the output file. The argument is read in hexadecimal if it begins with 0x or 0X, in octal if it begins with 0, and in base 10 otherwise. Default is 0x0100. .TP .B \-h, \-\-help Show summary of options and exit. .TP .B \-l, \-\-labels Try to guess label locations from jump instructions and add them to the assembly code. .TP .B "\-o, \-\-output=FILE Specify the output file. Default is to write to standard output. .TP .B \-s, \-\-sym-output=FILE Write symbol information into a file. .TP .B \-S, \-\-sym-input=FILE Read symbol information from a file. See .B SYMBOL FILE below. .TP .B \-t, \-\-source Print the binary data corresponding to each line of assembly code in a comment at the end of the line. Data is printed in hex and ASCII. This is useful for identifying data sections in the first disassembly. .TP .B \-u, \-\-undoc By default, all undocumented instructions are disassembled as .I defb directives with the instruction name in a comment. This is due to missing or buggy support for many of these instructions in z80asm. If this option is specified, undocumented instructions are written directly into the disassembly. .TP .B \-v, \-\-verbose Increase verbosity level. Specify multiple times to be more verbose. Messages are sent to standard error. .TP .B \-V, \-\-version Display version information and exit. .TP .B \-z, \-\-zilog Enable compatibility mode for the original Zilog Z80 assembler. This currently only changes the syntax of relative jumps. .SH SYMBOL FILE Symbol files written by .B z80dasm can be directly used as input symbol files with the .B --sym-input option. The following directives are recognized in input symbol files and are propagated to the output symbol files: .TP .BR include " ""filename""" Include another symbol file. Double quotes are mandatory. Included files must be in the current directory. .TP .BR "" symbol: " equ" " value" Define a symbol with a value. The value is read in hexadecimal if it begins with 0x or 0X, in octal if it begins with 0, and in base 10 otherwise. Default is 0x0100. .TP .BR ; " comment" All characters between a semi-colon and end of line are ignored. .SH BLOCK FILE Block files specify the boundaries between different blocks (sections) of binary data in the disassembler input file. The following directives are recognized: .TP .BR "" name: " [ unlabeled ] [ start | first ] " "address" " [ unlabeled ] [ end | last ] " "address" " type" " type" Define a block with the start and end address that contains a certain type of binary data. Start address is the 16 bit address of the first byte in the block. Keywords "start" and "first" are synonymous. If the keyword "end" is used, the end address is the 16 bit address of the last byte in the block plus one. If the keyword "last" is used, the end address is the 16 bit address of the last byte in block. Normally labels are defined at the addresses specified in the block definition. This can be suppressed by adding the keyword "unlabeled" before the address. .TP .BR ; " comment" All characters between a semi-colon and end of line are ignored. .P The following block types are supported: .TP .B code Block containing Z80 machine code. Data in this block will be written in Z80 assembly language. .TP .B bytedata Data block containing separate bytes. Data in this block will be written with .I defb directives. .TP .B worddata Data block containing 16 bit words (low order byte first). Data in this block will be written with .I defw directives. .TP .B pointers Data block containing 16 bit pointers (low order byte first). This type is equivalent to .B worddata except that values will be replaced with labels where that is possible. .SH DIAGNOSTICS If disassembly was successful .B z80dasm returns 0. On error diagnostic messages are printed to standard error and .B z80dasm returns 1. .SH BUGS Please report bugs to .I tomaz.solc@tablix.org .SH AUTHOR .B z80dasm is based largely on .B dz80 , written by Jan Panteltje. Feature enhancements and bug fixes were made by Tomaz Solc. .SH SEE ALSO .BR z80asm (1) z80dasm-1.1.5/src/blocks.h0000644000175000017500000000402212746655163012157 00000000000000/* Copyright (C) 2007-2012 Tomaz Solc */ /* This program is free software; you can redistribute it and/or modify */ /* it under the terms of the GNU General Public License as published by */ /* the Free Software Foundation; either version 2 of the License, or */ /* (at your option) any later version. */ /* This program is distributed in the hope that it will be useful, */ /* but WITHOUT ANY WARRANTY; without even the implied warranty of */ /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */ /* GNU General Public License for more details. */ /* You should have received a copy of the GNU General Public License */ /* along with this program; if not, write to the Free Software */ /* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ enum blocktype { code, bytedata, worddata, pointers }; /* The kind of label to generate at start or end of a block. */ enum labeltype { /* Don't generate any label. */ LABEL_NONE, /* Make a label at the first or last byte in block. */ LABEL_FIRST_LAST, /* Make a label at the first or one after the last byte in block */ LABEL_START_END }; struct block { char *name; int start; /* first byte in this block */ int end; /* last byte in this block plus 1 */ /* The kind of label to generate at the start of this block */ enum labeltype start_label; /* The kind of label to generate at the end of this block */ enum labeltype end_label; enum blocktype type; struct block *prev; struct block *next; }; extern struct block *blocks; int block_init(int start, int end); struct block *block_new(char *name, int start, int end, enum blocktype type, enum labeltype start_label, enum labeltype end_label); int block_load_file(char *filename); int block_load_line(char *line, char **name, int *start, int *end, enum blocktype *type, enum labeltype *start_label, enum labeltype *end_label); z80dasm-1.1.5/src/symtab.c0000644000175000017500000001407712743450417012177 00000000000000/* Copyright (C) 2007-2012 Tomaz Solc */ /* This program is free software; you can redistribute it and/or modify */ /* it under the terms of the GNU General Public License as published by */ /* the Free Software Foundation; either version 2 of the License, or */ /* (at your option) any later version. */ /* This program is distributed in the hope that it will be useful, */ /* but WITHOUT ANY WARRANTY; without even the implied warranty of */ /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */ /* GNU General Public License for more details. */ /* You should have received a copy of the GNU General Public License */ /* along with this program; if not, write to the Free Software */ /* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include #include #include #include "symtab.h" #include "dz80.h" struct symbol *symbols=NULL; /* TODO: This symbol table implementation in slow. */ void symbol_remove(struct symbol *symb) { struct reference *ref,*refn; msg(2, "Debug: removing symbol '%s' with value 0x%04x\n", symb->name, symb->val); ref=symb->ref; while(ref!=NULL) { refn=ref->next; free(ref); ref=refn; } free(symb->name); if(symb->prev!=NULL) { symb->prev->next=symb->next; } else { symbols=symb->next; } if(symb->next!=NULL) { symb->next->prev=symb->prev; } free(symb); } struct symbol *symbol_find(int val) { struct symbol *cur; cur=symbols; while(cur!=NULL) { if(cur->val == val) { return cur; } cur=cur->next; } return NULL; } struct symbol *symbol_find_next(int val, struct symbol *cur) { if(cur==NULL) { cur=symbols; } else { cur=cur->next; } while(cur!=NULL) { if(cur->val == val) { return cur; } cur=cur->next; } return NULL; } int symbol_compare(struct symbol *a, struct symbol *b) { if(a->val > b->val) { return 1; } else if(a->val < b->val) { return -1; } if(a->weight > b->weight) { return 1; } else if(a->weight < b->weight) { return -1; } return 0; } /* Helper function for symbol_new(). It finds a place where the new * symbol will be inserted into the linked list */ void symbol_find_place(struct symbol *new, struct symbol **prev, struct symbol **next) { struct symbol *cur; *prev=NULL; cur=symbols; while(cur!=NULL) { *next=cur; if(symbol_compare(cur, new) > 0) { return; } *prev=cur; cur=cur->next; } *next=NULL; return; } struct symbol *symbol_find_inrange(int val, int range) { struct symbol *cur; cur=symbols; while(cur!=NULL) { if(val<=cur->val && (val+range)>cur->val) { return cur; } cur=cur->next; } return NULL; } struct symbol *symbol_find_range(int val) { struct symbol *cur; cur=symbols; while(cur!=NULL) { if(cur->val<=val && (cur->val+cur->range)>val) { return cur; } cur=cur->next; } return NULL; } struct symbol *symbol_new(char *name, int val, int weight, int included) { struct symbol *prev, *next; struct symbol *dest; msg(2, "Debug: defining new symbol '%s' with value 0x%04x\n", name, val); dest=symbol_find(val); if(dest!=NULL) { if(!strcmp(name, dest->name)) return NULL; /* msg(0, "Warning: two symbols with same value defined " "('%s' and '%s')\n", name, dest->name); */ } dest=calloc(1, sizeof(*dest)); if(dest==NULL) return NULL; dest->name=strdup(name); dest->val=val; dest->weight=weight; dest->automatic=0; dest->range=1; dest->included=included; dest->label=0; symbol_find_place(dest, &prev, &next); dest->prev=prev; dest->next=next; if(next!=NULL) { next->prev=dest; } if(prev!=NULL) { prev->next=dest; } else { symbols=dest; } dest->ref=NULL; return dest; } struct symbol *symbol_newref(int val, int addr, enum referencetype type) { struct symbol *dest; struct reference *r; /* strlen("sub_0000h")+1 = 10 */ char name[10]; dest=symbol_find(val); if(dest==NULL) { if(type==cldest) { sprintf(name, "sub_%04xh", val); } else { sprintf(name, "l%04xh", val); } dest=symbol_new(name, val, 50, 0); dest->automatic=1; } r=calloc(1, sizeof(*r)); r->addr=addr; r->type=type; r->next=dest->ref; dest->ref=r; return dest; } int symbol_setlabel(int val, int range) { struct symbol *dest; dest=symbol_find(val); if(dest==NULL) return 1; dest->range=range; dest->label=1; return 0; } void symbol_remove_nonlabels() { struct symbol *symb,*symbn; symb=symbols; while(symb!=NULL) { symbn=symb->next; if((!symb->label) && symb->automatic) { symbol_remove(symb); } symb=symbn; } } int symbol_export_nonlabels(FILE *f) { struct symbol *cur; cur=symbols; while(cur!=NULL) { if((!cur->label) && cur->ref != NULL) { fprintf(f, "%s:\tequ 0x%04x\n", cur->name, cur->val); } cur=cur->next; } return 0; } int symbol_export(FILE *f) { struct symbol *cur; struct reference *r; fprintf(f, "; Symbol file\n\n"); symbol_export_includes(f); fprintf(f, "\n"); cur=symbols; while(cur!=NULL) { if(cur->included) { cur=cur->next; continue; } if(cur->comment!=NULL) { fprintf(f, "%s", cur->comment); } fprintf(f, "%s:\tequ 0x%04x\n", cur->name, cur->val); fprintf(f, "; Used at following locations:\n"); r=cur->ref; while(r!=NULL) { fprintf(f, "; 0x%04x\t", r->addr); switch(r->type) { case undef: fprintf(f, "(unknown)"); break; case jpdest: fprintf(f, "(jp destination)"); break; case jrdest: fprintf(f, "(jr destination)"); break; case djdest: fprintf(f, "(djnz destination)"); break; case cldest: fprintf(f, "(call destination)"); break; case vrbyte: fprintf(f, "(byte load pointer)"); break; case vrword: fprintf(f, "(word load pointer)"); break; case cstadd: fprintf(f, "(immediate value)"); break; case cstdfw: fprintf(f, "(defw directive)"); break; } fprintf(f, "\n"); r=r->next; } fprintf(f, "\n"); cur=cur->next; } return 1; } z80dasm-1.1.5/src/dz80dat.c0000644000175000017500000003032513127235430012141 00000000000000/* Modified by Tomaz Solc , June 2017 */ #include "dz80.h" const char *rarg[]={"b","c","d","e","h","l","(hl)","a"}; /********opcodes for z80 **********/ const struct comm comtab[]={ /*00*/{"nop","vv",1,0,0}, /*01*/{"ld bc,","vv",3,2,0}, /*02*/{"ld (bc),a","vv",1,0,0}, /*03*/{"inc bc","vv",1,0,0}, /*04*/{"inc b","vv",1,0,0}, /*05*/{"dec b","vv",1,0,0}, /*06*/{"ld b,","vv",2,1,0}, /*07*/{"rlca","vv",1,0,0}, /*08*/{"ex af,af'","vv",1,0,1}, /*09*/{"add hl,bc","vv",1,0,0}, /*0a*/{"ld a,(bc)","vv",1,0,0}, /*0b*/{"dec bc","vv",1,0,0}, /*0c*/{"inc c","vv",1,0,0}, /*0d*/{"dec c","vv",1,0,0}, /*0e*/{"ld c,","vv",2,1,0}, /*0f*/{"rrca","vv",1,0,0}, /*10*/{"djnz ","vv",2,3,1}, /*11*/{"ld de,","vv",3,2,0}, /*12*/{"ld (de),a","vv",1,0,0}, /*13*/{"inc de","vv",1,0,0}, /*14*/{"inc d","vv",1,0,0}, /*15*/{"dec d","vv",1,0,0}, /*16*/{"ld d,","vv",2,1,0}, /*17*/{"rla","vv",1,0,0}, /*18*/{"jr ","vv",2,3,1}, /*19*/{"add hl,de","vv",1,0,0}, /*1a*/{"ld a,(de)","vv",1,0,0}, /*1b*/{"dec de","vv",1,0,0}, /*1c*/{"inc e","vv",1,0,0}, /*1d*/{"dec e","vv",1,0,0}, /*1e*/{"ld e,","vv",2,1,0}, /*1f*/{"rra","vv",1,0,0}, /*20*/{"jr nz,","vv",2,3,1}, /*21*/{"ld hl,","vv",3,2,0}, /*22*/{"ld (","),hl",3,12,0}, /*23*/{"inc hl","vv",1,0,0}, /*24*/{"inc h","vv",1,0,0}, /*25*/{"dec h","vv",1,0,0}, /*26*/{"ld h,","vv",2,1,0}, /*27*/{"daa","vv",1,0,0}, /*28*/{"jr z,","vv",2,3,1}, /*29*/{"add hl,hl","vv",1,0,0}, /*2a*/{"ld hl,(",")",3,12,0}, /*2b*/{"dec hl","vv",1,0,0}, /*2c*/{"inc l","vv",1,0,0}, /*2d*/{"dec l","vv",1,0,0}, /*2e*/{"ld l,","vv",2,1,0}, /*2f*/{"cpl","vv",1,0,0}, /*30*/{"jr nc,","vv",2,3,1}, /*31*/{"ld sp,","vv",3,2,0}, /*32*/{"ld (","),a",3,12,0}, /*33*/{"inc sp","vv",1,0,0}, /*34*/{"inc (hl)","vv",1,0,0}, /*35*/{"dec (hl)","vv",1,0,0}, /*36*/{"ld (hl),","vv",2,1,0}, /*37*/{"scf","vv",1,0,0}, /*38*/{"jr c,","vv",2,3,1}, /*39*/{"add hl,sp","vv",1,0,0}, /*3a*/{"ld a,(",")",3,12,0}, /*3b*/{"dec sp","vv",1,0,0}, /*3c*/{"inc a","vv",1,0,0}, /*3d*/{"dec a","vv",1,0,0}, /*3e*/{"ld a,","vv",2,1,0}, /*3f*/{"ccf","vv",1,0,0}, /*40*/{"ld b,b","vv",1,0,0}, /*41*/{"ld b,c","vv",1,0,0}, /*42*/{"ld b,d","vv",1,0,0}, /*43*/{"ld b,e","vv",1,0,0}, /*44*/{"ld b,h","vv",1,0,0}, /*45*/{"ld b,l","vv",1,0,0}, /*46*/{"ld b,(hl)","vv",1,0,0}, /*47*/{"ld b,a","vv",1,0,0}, /*48*/{"ld c,b","vv",1,0,0}, /*49*/{"ld c,c","vv",1,0,0}, /*4a*/{"ld c,d","vv",1,0,0}, /*4b*/{"ld c,e","vv",1,0,0}, /*4c*/{"ld c,h","vv",1,0,0}, /*4d*/{"ld c,l","vv",1,0,0}, /*4e*/{"ld c,(hl)","vv",1,0,0}, /*4f*/{"ld c,a","vv",1,0,0}, /*50*/{"ld d,b","vv",1,0,0}, /*51*/{"ld d,c","vv",1,0,0}, /*52*/{"ld d,d","vv",1,0,0}, /*53*/{"ld d,e","vv",1,0,0}, /*54*/{"ld d,h","vv",1,0,0}, /*55*/{"ld d,l","vv",1,0,0}, /*56*/{"ld d,(hl)","vv",1,0,0}, /*57*/{"ld d,a","vv",1,0,0}, /*58*/{"ld e,b","vv",1,0,0}, /*59*/{"ld e,c","vv",1,0,0}, /*5a*/{"ld e,d","vv",1,0,0}, /*5b*/{"ld e,e","vv",1,0,0}, /*5c*/{"ld e,h","vv",1,0,0}, /*5d*/{"ld e,l","vv",1,0,0}, /*5e*/{"ld e,(hl)","vv",1,0,0}, /*5f*/{"ld e,a","vv",1,0,0}, /*60*/{"ld h,b","vv",1,0,0}, /*61*/{"ld h,c","vv",1,0,0}, /*62*/{"ld h,d","vv",1,0,0}, /*63*/{"ld h,e","vv",1,0,0}, /*64*/{"ld h,h","vv",1,0,0}, /*65*/{"ld h,l","vv",1,0,0}, /*66*/{"ld h,(hl)","vv",1,0,0}, /*67*/{"ld h,a","vv",1,0,0}, /*68*/{"ld l,b","vv",1,0,0}, /*69*/{"ld l,c","vv",1,0,0}, /*6a*/{"ld l,d","vv",1,0,0}, /*6b*/{"ld l,e","vv",1,0,0}, /*6c*/{"ld l,h","vv",1,0,0}, /*6d*/{"ld l,l","vv",1,0,0}, /*6e*/{"ld l,(hl)","vv",1,0,0}, /*6f*/{"ld l,a","vv",1,0,0}, /*70*/{"ld (hl),b","vv",1,0,0}, /*71*/{"ld (hl),c","vv",1,0,0}, /*72*/{"ld (hl),d","vv",1,0,0}, /*73*/{"ld (hl),e","vv",1,0,0}, /*74*/{"ld (hl),h","vv",1,0,0}, /*75*/{"ld (hl),l","vv",1,0,0}, /*76*/{"halt","vv",1,0,0}, /*77*/{"ld (hl),a","vv",1,0,0}, /*78*/{"ld a,b","vv",1,0,0}, /*79*/{"ld a,c","vv",1,0,0}, /*7a*/{"ld a,d","vv",1,0,0}, /*7b*/{"ld a,e","vv",1,0,0}, /*7c*/{"ld a,h","vv",1,0,0}, /*7d*/{"ld a,l","vv",1,0,0}, /*7e*/{"ld a,(hl)","vv",1,0,0}, /*7f*/{"ld a,a","vv",1,0,0}, /*80*/{"add a,b","vv",1,0,0}, /*81*/{"add a,c","vv",1,0,0}, /*82*/{"add a,d","vv",1,0,0}, /*83*/{"add a,e","vv",1,0,0}, /*84*/{"add a,h","vv",1,0,0}, /*85*/{"add a,l","vv",1,0,0}, /*86*/{"add a,(hl)","vv",1,0,0}, /*87*/{"add a,a","vv",1,0,0}, /*88*/{"adc a,b","vv",1,0,0}, /*89*/{"adc a,c","vv",1,0,0}, /*8a*/{"adc a,d","vv",1,0,0}, /*8b*/{"adc a,e","vv",1,0,0}, /*8c*/{"adc a,h","vv",1,0,0}, /*8d*/{"adc a,l","vv",1,0,0}, /*8e*/{"adc a,(hl)","vv",1,0,0}, /*8f*/{"adc a,a","vv",1,0,0}, /*90*/{"sub b","vv",1,0,0}, /*91*/{"sub c","vv",1,0,0}, /*92*/{"sub d","vv",1,0,0}, /*93*/{"sub e","vv",1,0,0}, /*94*/{"sub h","vv",1,0,0}, /*95*/{"sub l","vv",1,0,0}, /*96*/{"sub (hl)","vv",1,0,0}, /*97*/{"sub a","vv",1,0,0}, /*98*/{"sbc a,b","vv",1,0,0}, /*99*/{"sbc a,c","vv",1,0,0}, /*9a*/{"sbc a,d","vv",1,0,0}, /*9b*/{"sbc a,e","vv",1,0,0}, /*9c*/{"sbc a,h","vv",1,0,0}, /*9d*/{"sbc a,l","vv",1,0,0}, /*9e*/{"sbc a,(hl)","vv",1,0,0}, /*9f*/{"sbc a,a","vv",1,0,0}, /*a0*/{"and b","vv",1,0,0}, /*a1*/{"and c","vv",1,0,0}, /*a2*/{"and d","vv",1,0,0}, /*a3*/{"and e","vv",1,0,0}, /*a4*/{"and h","vv",1,0,0}, /*a5*/{"and l","vv",1,0,0}, /*a6*/{"and (hl)","vv",1,0,0}, /*a7*/{"and a","vv",1,0,0}, /*a8*/{"xor b","vv",1,0,0}, /*a9*/{"xor c","vv",1,0,0}, /*aa*/{"xor d","vv",1,0,0}, /*ab*/{"xor e","vv",1,0,0}, /*ac*/{"xor h","vv",1,0,0}, /*ad*/{"xor l","vv",1,0,0}, /*ae*/{"xor (hl)","vv",1,0,0}, /*af*/{"xor a","vv",1,0,0}, /*b0*/{"or b","vv",1,0,0}, /*b1*/{"or c","vv",1,0,0}, /*b2*/{"or d","vv",1,0,0}, /*b3*/{"or e","vv",1,0,0}, /*b4*/{"or h","vv",1,0,0}, /*b5*/{"or l","vv",1,0,0}, /*b6*/{"or (hl)","vv",1,0,0}, /*b7*/{"or a","vv",1,0,0}, /*b8*/{"cp b","vv",1,0,0}, /*b9*/{"cp c","vv",1,0,0}, /*ba*/{"cp d","vv",1,0,0}, /*bb*/{"cp e","vv",1,0,0}, /*bc*/{"cp h","vv",1,0,0}, /*bd*/{"cp l","vv",1,0,0}, /*be*/{"cp (hl)","vv",1,0,0}, /*bf*/{"cp a","vv",1,0,0}, /*c0*/{"ret nz","vv",1,0,0}, /*c1*/{"pop bc","vv",1,0,0}, /*c2*/{"jp nz,","vv",3,2,0}, /*c3*/{"jp ","vv",3,2,0}, /*c4*/{"call nz,","vv",3,2,0}, /*c5*/{"push bc","vv",1,0,0}, /*c6*/{"add a,","vv",2,1,0}, /*c7*/{"rst 0","vv",1,0,0}, /*c8*/{"ret z","vv",1,0,0}, /*c9*/{"ret","vv",1,0,0}, /*ca*/{"jp z,","vv",3,2,0}, /*cb*/{"qs","vv",99,88,77}, /*cc*/{"call z,","vv",3,2,0}, /*cd*/{"call ","vv",3,2,0}, /*ce*/{"adc a,","vv",2,1,0}, /*cf*/{"rst 8","vv",1,0,0}, /*d0*/{"ret nc","vv",1,0,0}, /*d1*/{"pop de","vv",1,0,0}, /*d2*/{"jp nc,","vv",3,2,0}, /*d3*/{"out (","),a",2,11,0}, /*d4*/{"call nc,","vv",3,2,0}, /*d5*/{"push de","vv",1,0,0}, /*d6*/{"sub ","vv",2,1,0}, /*d7*/{"rst 10h","vv",1,0,0}, /*d8*/{"ret c","vv",1,0,0}, /*d9*/{"exx","vv",1,0,0}, /*da*/{"jp c,","vv",3,2,0}, /*db*/{"in a,(",")",2,11,0}, /*dc*/{"call c,","vv",3,2,0}, /*dd*/{"qs","vv",99,88,77}, /*de*/{"sbc a,","vv",2,1,0}, /*df*/{"rst 18h","vv",1,0,0}, /*e0*/{"ret po","vv",1,0,0}, /*e1*/{"pop hl","vv",1,0,0}, /*e2*/{"jp po,","vv",3,2,0}, /*e3*/{"ex (sp),hl","vv",1,0,0}, /*e4*/{"call po,","vv",3,2,0}, /*e5*/{"push hl","vv",1,0,0}, /*e6*/{"and ","vv",2,1,0}, /*e7*/{"rst 20h","vv",1,0,0}, /*e8*/{"ret pe","vv",1,0,0}, /*e9*/{"jp (hl)","vv",1,0,0}, /*ea*/{"jp pe,","vv",3,2,0}, /*eb*/{"ex de,hl","vv",1,0,0}, /*ec*/{"call pe,","vv",3,2,0}, /*ed*/{"qs","vv",99,88,77}, /*ee*/{"xor ","vv",2,1,0}, /*ef*/{"rst 28h","vv",1,0,0}, /*f0*/{"ret p","vv",1,0,0}, /*f1*/{"pop af","vv",1,0,0}, /*f2*/{"jp p,","vv",3,2,0}, /*f3*/{"di","vv",1,0,0}, /*f4*/{"call p,","vv",3,2,0}, /*f5*/{"push af","vv",1,0,0}, /*f6*/{"or ","vv",2,1,0}, /*f7*/{"rst 30h","vv",1,0,0}, /*f8*/{"ret m","vv",1,0,0}, /*f9*/{"ld sp,hl","vv",1,0,0}, /*fa*/{"jp m,","vv",3,2,0}, /*fb*/{"ei","vv",1,0,0}, /*fc*/{"call m,","vv",3,2,0}, /*fd*/{"qs","vv",99,88,77}, /*fe*/{"cp ","vv",2,1,0}, /*ff*/{"rst 38h","vv",1,0,0}, }; const char *ed40[]={ /*40*/"in b,(c)", /*41*/"out (c),b", /*42*/"sbc hl,bc", /*43*/"ld (", /*44*/"neg", /*45*/"retn", /*46*/"im 0", /*47*/"ld i,a", /*48*/"in c,(c)", /*49*/"out (c),c", /*4a*/"adc hl,bc", /*4b*/"ld bc,(", /*4c*/"00", /*4d*/"reti", /*4e*/"00", /*4f*/"ld r,a", }; const char *ed50[]={ /*50*/"in d,(c)", /*51*/"out (c),d", /*52*/"sbc hl,de", /*53*/"ld (", /*54*/"00", /*55*/"00", /*56*/"im 1", /*57*/"ld a,i", /*58*/"in e,(c)", /*59*/"out (c),e", /*5a*/"adc hl,de", /*5b*/"ld de,(", /*5c*/"00", /*5d*/"00", /*5e*/"im 2", /*5f*/"ld a,r", }; const char *ed60[]={ /*60*/"in h,(c)", /*61*/"out (c),h", /*62*/"sbc hl,hl", /*63*/"00", /*64*/"00", /*65*/"00", /*66*/"00", /*67*/"rrd", /*68*/"in l,(c)", /*69*/"out (c),l", /*6a*/"adc hl,hl", /*6b*/"00", /*6c*/"00", /*6d*/"00", /*6e*/"00", /*6f*/"rld", }; const char *ed70[]={ /*70*/"in f,(c)", /*71*/"out (c),0", /*72*/"sbc hl,sp", /*73*/"ld (", /*74*/"00", /*75*/"00", /*76*/"00", /*77*/"00", /*78*/"in a,(c)", /*79*/"out (c),a", /*7a*/"adc hl,sp", /*7b*/"ld sp,(", /*7c*/"00", /*7d*/"00", /*7e*/"00", /*7f*/"00", }; const char *eda0[]={ /*a0*/"ldi", /*a1*/"cpi", /*a2*/"ini", /*a3*/"outi", /*a4*/"00", /*a5*/"00", /*a6*/"00", /*a7*/"00", /*a8*/"ldd", /*a9*/"cpd", /*aa*/"ind", /*ab*/"outd", /*ac*/"00", /*ad*/"00", /*ae*/"00", /*af*/"00", }; const char *edb0[]={ /*b0*/"ldir", /*b1*/"cpir", /*b2*/"inir", /*b3*/"otir", /*b4*/"00", /*b5*/"00", /*b6*/"00", /*b7*/"00", /*b8*/"lddr", /*b9*/"cpdr", /*ba*/"indr", /*bb*/"otdr", /*bc*/"00", /*bd*/"00", /*be*/"00", /*bf*/"00", }; const char *ddfd[]={ /*00*/"00", /*01*/"00", /*02*/"00", /*03*/"00", /*04*/"00", /*05*/"00", /*06*/"00", /*07*/"00", /*08*/"00", /*09*/"00", /*0a*/"00", /*0b*/"00", /*0c*/"00", /*0d*/"00", /*0e*/"00", /*0f*/"00", /*10*/"00", /*11*/"00", /*12*/"00", /*13*/"00", /*14*/"00", /*15*/"00", /*16*/"00", /*17*/"00", /*18*/"00", /*19*/"00", /*1a*/"00", /*1b*/"00", /*1c*/"00", /*1d*/"00", /*1e*/"00", /*1f*/"00", /*20*/"00", /*21*/"00", /*22*/"00", /*23*/"00", /*24*/"inc %sh", /*25*/"dec %sh", /*26*/"00", /*27*/"00", /*28*/"00", /*29*/"00", /*2a*/"00", /*2b*/"00", /*2c*/"inc %sl", /*2d*/"dec %sl", /*2e*/"00", /*2f*/"00", /*30*/"00", /*31*/"00", /*32*/"00", /*33*/"00", /*34*/"00", /*35*/"00", /*36*/"00", /*37*/"00", /*38*/"00", /*39*/"00", /*3a*/"00", /*3b*/"00", /*3c*/"00", /*3d*/"00", /*3e*/"00", /*3f*/"00", /*40*/"00", /*41*/"00", /*42*/"00", /*43*/"00", /*44*/"ld b,%sh", /*45*/"ld b,%sl", /*46*/"00", /*47*/"00", /*48*/"00", /*49*/"00", /*4a*/"00", /*4b*/"00", /*4c*/"ld c,%sh", /*4d*/"ld c,%sl", /*4e*/"00", /*4f*/"00", /*50*/"00", /*51*/"00", /*52*/"00", /*53*/"00", /*54*/"ld d,%sh", /*55*/"ld d,%sl", /*56*/"00", /*57*/"00", /*58*/"00", /*59*/"00", /*5a*/"00", /*5b*/"00", /*5c*/"ld e,%sh", /*5d*/"ld e,%sl", /*5e*/"00", /*5f*/"00", /*60*/"ld %sh,b", /*61*/"ld %sh,c", /*62*/"ld %sh,d", /*63*/"ld %sh,e", /*64*/"00", /*65*/"00", /*66*/"00", /*67*/"ld %sh,a", /*68*/"ld %sl,b", /*69*/"ld %sl,c", /*6a*/"ld %sl,d", /*6b*/"ld %sl,e", /*6c*/"00", /*6d*/"00", /*6e*/"00", /*6f*/"ld %sl,a", /*70*/"00", /*71*/"00", /*72*/"00", /*73*/"00", /*74*/"00", /*75*/"00", /*76*/"00", /*77*/"00", /*78*/"00", /*79*/"00", /*7a*/"00", /*7b*/"00", /*7c*/"ld a,%sh", /*7d*/"ld a,%sl", /*7e*/"00", /*7f*/"00", /*80*/"00", /*81*/"00", /*82*/"00", /*83*/"00", /*84*/"add a,%sh", /*85*/"add a,%sl", /*86*/"00", /*87*/"00", /*88*/"00", /*89*/"00", /*8a*/"00", /*8b*/"00", /*8c*/"adc a,%sh", /*8d*/"adc a,%sl", /*8e*/"00", /*8f*/"00", /*90*/"00", /*91*/"00", /*92*/"00", /*93*/"00", /*94*/"sub %sh", /*95*/"sub %sl", /*96*/"00", /*97*/"00", /*98*/"00", /*99*/"00", /*9a*/"00", /*9b*/"00", /*9c*/"sbc a,%sh", /*9d*/"sbc a,%sl", /*9e*/"00", /*9f*/"00", /*a0*/"00", /*a1*/"00", /*a2*/"00", /*a3*/"00", /*a4*/"and %sh", /*a5*/"and %sl", /*a6*/"00", /*a7*/"00", /*a8*/"00", /*a9*/"00", /*aa*/"00", /*ab*/"00", /*ac*/"xor %sh", /*ad*/"xor %sl", /*ae*/"00", /*af*/"00", /*b0*/"00", /*b1*/"00", /*b2*/"00", /*b3*/"00", /*b4*/"or %sh", /*b5*/"or %sl", /*b6*/"00", /*b7*/"00", /*b8*/"00", /*b9*/"00", /*ba*/"00", /*bb*/"00", /*bc*/"cp %sh", /*bd*/"cp %sl", /*be*/"00", /*bf*/"00", /*c0*/"00", /*c1*/"00", /*c2*/"00", /*c3*/"00", /*c4*/"00", /*c5*/"00", /*c6*/"00", /*c7*/"00", /*c8*/"00", /*c9*/"00", /*ca*/"00", /*cb*/"00", /*cc*/"00", /*cd*/"00", /*ce*/"00", /*cf*/"00", /*d0*/"00", /*d1*/"00", /*d2*/"00", /*d3*/"00", /*d4*/"00", /*d5*/"00", /*d6*/"00", /*d7*/"00", /*d8*/"00", /*d9*/"00", /*da*/"00", /*db*/"00", /*dc*/"00", /*dd*/"00", /*de*/"00", /*df*/"00", /*e0*/"00", /*e1*/"00", /*e2*/"00", /*e3*/"00", /*e4*/"00", /*e5*/"00", /*e6*/"00", /*e7*/"00", /*e8*/"00", /*e9*/"00", /*ea*/"00", /*eb*/"00", /*ec*/"00", /*ed*/"00", /*ee*/"00", /*ef*/"00", /*f0*/"00", /*f1*/"00", /*f2*/"00", /*f3*/"00", /*f4*/"00", /*f5*/"00", /*f6*/"00", /*f7*/"00", /*f8*/"00", /*f9*/"00", /*fa*/"00", /*fb*/"00", /*fc*/"00", /*fd*/"00", /*fe*/"00", /*ff*/"00" }; z80dasm-1.1.5/src/table.c0000644000175000017500000000557712743450417011774 00000000000000/* dz80_2 is registered Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2007 email: panteltje@yahoo.com This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /* Modified by Tomaz Solc , June 2007 */ #include #include #include #include "dz80.h" #include "symtab.h" /*calculate destination addresses and store in hash table*/ int tosymtab(int *ia, unsigned int prc) { unsigned int argval; enum referencetype argtyp; /* FIXME: This duplicates decoding code in dz80.c. */ argtyp=0; if((ia[0]==0x32) || (ia[0]==0x3a)) /* ld (nn),a */ /* ld a,(nn) */ { argtyp=vrbyte; argval=ia[1]+256*ia[2]; } else if((ia[0]==0x22) || (ia[0]==0x2a)) /* ld (nn),hl */ /* ld hl,(nn) */ { argtyp=vrword; argval=ia[1]+256*ia[2]; } else if(ia[0]==0xed) { if((ia[1]==0x43)||(ia[1]==0x4b)||(ia[1]==0x53)||(ia[1]==0x5b)\ ||(ia[1]==0x73)||(ia[1]==0x7b)) /* ld (nn),bc */ /* ld bc,(nn) */ /* ld (nn),de */ /* ld de,(nn) */ /* ld (nn),sp */ /* ld sp,(nn) */ { argtyp=vrword; argval=ia[2]+256*ia[3]; } } else if((ia[0]==0xdd)||(ia[0]==0xfd)) { if((ia[1]==0x22)||(ia[1]==0x2a)) /* ld (nn),ix */ /* ld ix,(nn) */ /* ld (nn),iy */ /* ld iy,(nn) */ { argtyp=vrword; argval=ia[2]+256*ia[3]; } if(ia[1]==0x21) /* ld ix,nn */ /* ld iy,nn */ { argtyp=cstadd; argval=ia[2]+256*ia[3]; } } else if((ia[0]==0xda)||(ia[0]==0xfa)||(ia[0]==0xd2)||(ia[0]==0xc3)\ ||(ia[0]==0xc2)||(ia[0]==0xf2)||(ia[0]==0xea)||(ia[0]==0xe2)||(ia[0]==0xca)) { /* jp */ argtyp=jpdest; argval=ia[1]+256*ia[2]; } else if((ia[0]==0x38)||(ia[0]==0x18)||(ia[0]==0x30)||(ia[0]==0x20)||(ia[0]==0x28)) { /* jr */ argtyp=jrdest; argval=prc+ia[1]+2; if(ia[1]>=128)argval-=256;/*signbit*/ } else if((ia[0]==0xdc)||(ia[0]==0xfc)||(ia[0]==0xd4)||(ia[0]==0xcd)||(ia[0]==0xc4)\ ||(ia[0]==0xf4)||(ia[0]==0xf4)||(ia[0]==0xec)||(ia[0]==0xe4)||(ia[0]==0xcc)) /* call */ { argtyp=cldest; argval=ia[1]+256*ia[2]; } else if((ia[0]==0x31)||(ia[0]==0x01)||(ia[0]==0x11)||(ia[0]==0x21)) { /* ld rr,nn */ argtyp=cstadd; argval=ia[1]+256*ia[2]; } else if(ia[0]==0x10) /* djnz */ { argtyp=djdest; argval=prc+ia[1]+2; if(ia[1]>=128)argval-=256; } if(argtyp==undef) { return 1; } else { symbol_newref(argval & 0xffff,prc,argtyp); } return(1);/*ok*/ } z80dasm-1.1.5/src/cmdline.c0000644000175000017500000001207513127235430012300 00000000000000/* Copyright (C) 2007-2012 Tomaz Solc */ /* This program is free software; you can redistribute it and/or modify */ /* it under the terms of the GNU General Public License as published by */ /* the Free Software Foundation; either version 2 of the License, or */ /* (at your option) any later version. */ /* This program is distributed in the hope that it will be useful, */ /* but WITHOUT ANY WARRANTY; without even the implied warranty of */ /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */ /* GNU General Public License for more details. */ /* You should have received a copy of the GNU General Public License */ /* along with this program; if not, write to the Free Software */ /* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include #include #include #include #include #include "config.h" int a_address = 0; int a_labels = 0; int a_source = 0; int a_undoc = 0; int a_org = 0x0100; int a_zilog = 0; int a_verbosity = 0; char *a_output = NULL; char *a_input = NULL; char *a_symoutput = NULL; char *a_syminput = NULL; char *a_blockfile = NULL; int msg(int level, const char *format, ...) { va_list ap; int r=0; va_start(ap, format); if(a_verbosity>=level) { r=vfprintf(stderr, format, ap); } va_end(ap); return r; } void version() { printf("%s, Z80 assembly language generating disassembler %s\n", PACKAGE, VERSION); printf("Copyright (C) 1994-2007 Jan Panteltje \n"); printf("Copyright (C) 2007-2012 Tomaz Solc \n\n"); printf("This is free software. You may redistribute copies of it under the terms of\n"); printf("the GNU General Public License .\n"); printf("There is NO WARRANTY, to the extent permitted by law.\n"); exit(0); } void syntax() { printf("%s, Z80 assembly language generating disassembler %s\n", PACKAGE, VERSION); printf("Usage: [options] file\n\n"); printf(" -a --address Print the memory address of each assembly line in a\n"); printf(" comment\n"); printf(" -l --labels Create labels for jump instructions\n"); printf(" -g --origin=ORG Specify the starting address of the code (default 100h)\n"); printf(" -t --source Print the corresponding binary data in hex and ASCII\n"); printf(" for each assembly line in a comment.\n"); printf(" -u --undoc Insert undocumented instructions directly into the\n"); printf(" disassembly instead of in the comments.\n"); printf(" -s --sym-output=FILE Write symbol information into FILE\n"); printf(" -S --sym-input=FILE Read symbol information from FILE\n"); printf(" -b --block-def=FILE Read information about code and data blocks from FILE\n"); printf(" -o --output=FILE Print output to FILE instead of standard output\n"); printf(" -h --help Display this help text and exit\n"); printf(" -v Increase verbosity\n"); printf(" -V --version Display version information and exit\n"); printf(" -z --zilog Use original Zilog syntax for relative jumps\n"); printf("\nBug reports to <%s>\n", PACKAGE_BUGREPORT); exit(0); } int str2int(char *s, int *n) { int r; r=sscanf(s, "%i", n); if(r==1) return 0; return -1; } void cmdline(int argc, char **argv) { const struct option longopts[] = { { "address", no_argument, NULL, 'a' }, { "labels", no_argument, NULL, 'l' }, { "origin", required_argument, NULL, 'g'}, { "reduced", no_argument, NULL, 'r' }, { "source", no_argument, NULL, 't' }, { "undoc", no_argument, NULL, 'u' }, { "sym-output", required_argument, NULL, 's' }, { "sym-input", required_argument, NULL, 'S' }, { "block-def", required_argument, NULL, 'b' }, { "output", required_argument, NULL, 'o' }, { "help", no_argument, NULL, 'h' }, { "version", no_argument, NULL, 'v' }, { "zilog", no_argument, NULL, 'z' }, { NULL, 0, NULL, 0 } }; const char opts[] = "alg:rtuS:s:o:hVvzb:"; int c,r; while((c=getopt_long(argc, argv, opts, longopts, NULL))!=-1) { switch(c) { case 'a': a_address=1; break; case 'l': a_labels=1; break; case 'g': r=str2int(optarg, &a_org); if(r) { fprintf(stderr, "Error: %s not an " "integer\n", optarg); exit(1); } break; case 't': a_source=1; break; case 'u': a_undoc=1; break; case 's': a_symoutput=optarg; break; case 'S': a_syminput=optarg; break; case 'b': a_blockfile=optarg; break; case 'z': a_zilog=1; break; case 'o': a_output=optarg; break; case 'V': version(); break; case 'v': a_verbosity++; break; case 'h': syntax(); break; default: break; } } if(optind email: panteltje@yahoo.com This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /* Modified by Tomaz Solc , June 2017 */ #include #include #include #include #include "dz80.h" #include "symtab.h" #include "blocks.h" #include "config.h" #include "utils.h" #define FP fprintf #define T_SIZE 6 /* Might be self-modifying code. */ int f_smc = 0; /* 8080 incompatible code */ int f_z80 = 0; FILE *f1=NULL, *f2=NULL, *f3=NULL, *fx=NULL; /* program counter */ unsigned int pc=0; int pass=0; /* buffer holding binary data from the file to be decoded */ int t[T_SIZE]; /* bytes remaining in the current block */ int shiftin_cnt; /* current block */ struct block *shiftin_blk; void shiftin() { int n; for(n=0; n<(T_SIZE-1); n++) { t[n]=t[n+1]; } if(shiftin_cnt>0) { t[T_SIZE-1]=getc(f1); if(t[T_SIZE-1]==EOF) { msg(0, "Error: Unexpected end of file. " "File changed while reading."); t[T_SIZE-1]=-1; } shiftin_cnt--; } else { t[T_SIZE-1]=-1; } } /* Returns: * -1 Not enough data available * 0 Constant * 1 Symbol */ int ckrange(int skip, char *str) { int val, off; struct symbol *symb; if(t[skip+0]==-1 || t[skip+1]==-1) { /* not enough data in file */ return -1; } val=t[skip+0]+256*t[skip+1]; if(pass==1 || pass==2 || (!a_labels)) { /* on first two passes don't bother printing labels (or if * labels are disabled) */ sprintf(str,"0%04xh",val); return 0; } /* not in area covered by file being disassembled */ /* NOTE: such symbols should already be * removed by symbol_remove_nonlabels() */ /* if((valend)) { sprintf(str,"0%04xh",val); return 0; } */ symb=symbol_find(val); if(symb!=NULL) { /* exact match */ sprintf(str,"%s", symb->name); return 1; } symb=symbol_find_range(val); if(symb!=NULL) { f_smc=1; off=val-symb->val; sprintf(str,"%s+%d", symb->name, off); return 1; } /* no label found */ sprintf(str, "0%04xh", val); return 0; } /* Returns: * -1 Not enough data available * 0 Constant * 1 Symbol */ int ckrange_rel(int skip, int pc, char *str) { int val; struct symbol *symb=NULL; if(t[skip]==-1) return -1; if(a_labels) { if(t[skip]<128) { val=pc+2+t[skip]; } else { val=pc+2+t[skip]-256; } symb=symbol_find(val & 0xffff); } if(a_labels && symb!=NULL) { /* print a label */ sprintf(str, "%s", symb->name); return 1; } else { if(a_zilog) { /* old Zilog za.com */ if(t[1]<128) { sprintf(str,"%d",t[1]+2); } else { sprintf(str,"%d",t[1]+2-256); } } else { /* zasm by Günter Woigk and * z80asm */ if(t[1]<128) { sprintf(str,"$%+d",t[1]+2); } else { sprintf(str,"$%+d",t[1]+2-256); } } return 0; } } /* Outputs n bytes as a defb line. Used for invalid/unknown instructions, etc. * If n == -1, then outputs bytes until the end of block. * * Returns number of bytes used. */ int defb(int n) { int i; FP(fx,"defb"); for(i=0;t[i]!=-1&&(n==-1||i= 0x08) && (a < 0x10)) FP(fx,"rrc "); else if((a >= 0x10) && (a < 0x18)) FP(fx,"rl "); else if((a >= 0x18) && (a < 0x20)) FP(fx,"rr "); else if((a >= 0x20) && (a < 0x28)) FP(fx,"sla "); else if((a >= 0x28) && (a < 0x30)) FP(fx,"sra "); /* undocumented instruction SLI (shift left with 1 insertion) */ else if((a >= 0x30) && (a < 0x38)) { before_undoc(2); FP(fx,"sli "); } else if((a >= 0x38) && (a < 0x40)) FP(fx,"srl "); else if((a >= 0x40) && (a < 0x80)) FP(fx,"bit %d,",(a-0x40)/8); else if((a >= 0x80) && (a < 0xc0)) FP(fx,"res %d,",(a-0x80)/8); else if(a >= 0xc0) FP(fx,"set %d,",(a-0xc0)/8); FP(fx,"%s",rarg[a%8]); f_z80=1; return(2); } else if(t[0] == 0xed) { a=t[1]; if(a==-1) { return defb(-1); } /* if((a>=0x40)&&(a<0x50)&&(ed40[a-0x40][0]!='0'))FP(fx,"%s",ed40[a-0x40]); else if((a>=0x50)&&(a<0x60)&&(ed50[a-0x50][0]!='0'))FP(fx,"%s",ed50[a-0x50]); else if((a>=0x60)&&(a<0x70)&&(ed60[a-0x60][0]!='0'))FP(fx,"%s",ed60[a-0x60]); else if((a>=0x70)&&(a<0x80)&&(ed70[a-0x70][0]!='0'))FP(fx,"%s",ed70[a-0x70]); else if((a>=0xa0)&&(a<0xb0)&&(eda0[a-0xa0][0]!='0'))FP(fx,"%s",eda0[a-0xa0]); else if((a>=0xb0)&&(a<0xc0)&&(edb0[a-0xb0][0]!='0'))FP(fx,"%s",edb0[a-0xb0]); */ if((a>=0x40)&&(a<0x50)&&(ed40[a-0x40][0]!='0')) i=0; else if((a>=0x50)&&(a<0x60)&&(ed50[a-0x50][0]!='0')) i=1; else if((a>=0x60)&&(a<0x70)&&(ed60[a-0x60][0]!='0')) i=2; else if((a>=0x70)&&(a<0x80)&&(ed70[a-0x70][0]!='0')) i=3; else if((a>=0xa0)&&(a<0xb0)&&(eda0[a-0xa0][0]!='0')) i=4; else if((a>=0xb0)&&(a<0xc0)&&(edb0[a-0xb0][0]!='0')) i=5; else { defb(1); FP(fx,";next byte illegal after ed"); return(1); } f_z80=1; switch(i) { case 0: strcpy(rstr,ed40[a-0x40]); break; case 1: strcpy(rstr,ed50[a-0x50]); break; case 2: strcpy(rstr,ed60[a-0x60]); break; case 3: if(a < 0x72) { before_undoc(2); } strcpy(rstr,ed70[a-0x70]); break; case 4: strcpy(rstr,eda0[a-0xa0]); break; case 5: strcpy(rstr,edb0[a-0xb0]); break; } /*if arg not in prog range it is a constant*/ if(a == 0x43) { strcpy(stro,"%s),bc"); } else if(a == 0x53) { strcpy(stro,"%s),de"); } else if(a == 0x73) { strcpy(stro,"%s),sp"); } else if((a == 0x4b) || (a == 0x5b) || (a == 0x7b)) { strcpy(stro,"%s)"); } else { stro[0] = 0; } if(stro[0] == 0) { FP(fx,rstr); return(2); } else { r=ckrange(2,bstr); if(r==-1) { return defb(-1); } else { FP(fx,rstr); FP(fx,stro,bstr); } return(4); } } else if((t[0] == 0xdd) || (t[0] == 0xfd)) { if(t[0]==0xfd) { strcpy(stri,"iy"); } else { strcpy(stri,"ix"); } if(t[1]==-1) { return defb(-1); } r=ckrange(2,bstr); f_z80=1; if(ddfd[t[1]][0]!='0') { before_undoc(2); FP(fx,ddfd[t[1]],stri); return(2); } switch(t[1]) { case 0x09: FP(fx,"add %s,bc",stri); return(2); break; case 0x19: FP(fx,"add %s,de",stri); return(2); break; case 0x21: if(r==-1) { return defb(-1); } FP(fx,"ld %s,%s",stri,bstr); return(4); break; case 0x22: if(r==-1) { return defb(-1); } FP(fx,"ld (%s),%s",bstr,stri); return(4); break; case 0x23: FP(fx,"inc %s",stri); return(2); case 0x26: if(t[2]==-1) { return defb(-1); } before_undoc(3); FP(fx,"ld %sh,0%02xh",stri,t[2]); return(3); break; case 0x29: FP(fx,"add %s,%s",stri,stri); return(2); break; case 0x2a: if(r==-1) { return defb(-1); } FP(fx,"ld %s,(%s)",stri,bstr); return(4); break; case 0x2b: FP(fx,"dec %s",stri); return(2); break; case 0x2e: if(t[2]==-1) { return defb(-1); } before_undoc(3); FP(fx,"ld %sl,0%02xh",stri,t[2]); return(3); break; case 0x39: FP(fx,"add %s,sp",stri); return(2); break; case 0x64: before_undoc(2); FP(fx,"ld %sh,%sh",stri,stri); return(2); break; case 0x65: before_undoc(2); FP(fx,"ld %sh,%sl",stri,stri); return(2); break; case 0x6c: before_undoc(2); FP(fx,"ld %sl,%sh",stri,stri); return(2); break; case 0x6d: before_undoc(2); FP(fx,"ld %sl,%sl",stri,stri); return(2); break; case 0xe1: FP(fx,"pop %s",stri); return(2); break; case 0xe3: FP(fx,"ex (sp),%s",stri); return(2); break; case 0xe5: FP(fx,"push %s",stri); return(2); break; case 0xe9: FP(fx,"jp (%s)",stri); return(2); break; case 0xf9: FP(fx,"ld sp,%s",stri); return(2); break; } /* end switch */ /* now it must be an instruction of type (ix+dd) or (iy+dd) */ if((t[2]==-1)||(t[3]==-1)) { return defb(-1); } if(t[2] < 128) { sprintf(stro,"(%s+0%02xh)",stri,t[2]); /* stro is: (ix+dd) or (iy+dd) */ } else { sprintf(stro,"(%s-0%02xh)",stri,256 - t[2]); } if(t[1]==0xcb) { a = t[3] & 0x07; if(a != 0x06) { before_undoc(4); } switch(t[3] & 0xf8) { case 0x00: FP(fx,"rlc "); break; case 0x08: FP(fx,"rrc "); break; case 0x10: FP(fx,"rl "); break; case 0x18: FP(fx,"rr "); break; case 0x20: FP(fx,"sla "); break; case 0x28: FP(fx,"sra "); break; case 0x30: FP(fx,"sli "); break; case 0x38: FP(fx,"srl "); break; case 0x40: FP(fx,"bit 0,"); break; case 0x48: FP(fx,"bit 1,"); break; case 0x50: FP(fx,"bit 2,"); break; case 0x58: FP(fx,"bit 3,"); break; case 0x60: FP(fx,"bit 4,"); break; case 0x68: FP(fx,"bit 5,"); break; case 0x70: FP(fx,"bit 6,"); break; case 0x78: FP(fx,"bit 7,"); break; case 0x80: FP(fx,"res 0,"); break; case 0x88: FP(fx,"res 1,"); break; case 0x90: FP(fx,"res 2,"); break; case 0x98: FP(fx,"res 3,"); break; case 0xa0: FP(fx,"res 4,"); break; case 0xa8: FP(fx,"res 5,"); break; case 0xb0: FP(fx,"res 6,"); break; case 0xb8: FP(fx,"res 7,"); break; case 0xc0: FP(fx,"set 0,"); break; case 0xc8: FP(fx,"set 1,"); break; case 0xd0: FP(fx,"set 2,"); break; case 0xd8: FP(fx,"set 3,"); break; case 0xe0: FP(fx,"set 4,"); break; case 0xe8: FP(fx,"set 5,"); break; case 0xf0: FP(fx,"set 6,"); break; case 0xf8: FP(fx,"set 7,"); break; }/*end switch t[3]*/ FP(fx,"%s",stro); switch(a) { case 0x00: FP(fx," & ld b,%s",stro); break; case 0x01: FP(fx," & ld c,%s",stro); break; case 0x02: FP(fx," & ld d,%s",stro); break; case 0x03: FP(fx," & ld e,%s",stro); break; case 0x04: FP(fx," & ld h,%s",stro); break; case 0x05: FP(fx," & ld l,%s",stro); break; case 0x06: break; case 0x07: FP(fx," & ld a,%s",stro); break; } return(4); }/*end dd cb or fd cb*/ else switch(t[1]) { case 0x34: FP(fx,"inc %s",stro); break; case 0x35: FP(fx,"dec %s",stro); break; case 0x36: FP(fx,"ld %s,0%02xh",stro,t[3]); return(4); break; case 0x46: FP(fx,"ld b,%s",stro); break; case 0x4e: FP(fx,"ld c,%s",stro); break; case 0x56: FP(fx,"ld d,%s",stro); break; case 0x5e: FP(fx,"ld e,%s",stro); break; case 0x66: FP(fx,"ld h,%s",stro); break; case 0x6e: FP(fx,"ld l,%s",stro); break; case 0x70: FP(fx,"ld %s,b",stro); break; case 0x71: FP(fx,"ld %s,c",stro); break; case 0x72: FP(fx,"ld %s,d",stro); break; case 0x73: FP(fx,"ld %s,e",stro); break; case 0x74: FP(fx,"ld %s,h",stro); break; case 0x75: FP(fx,"ld %s,l",stro); break; case 0x77: FP(fx,"ld %s,a",stro); break; case 0x7e: FP(fx,"ld a,%s",stro); break; case 0x86: FP(fx,"add a,%s",stro); break; case 0x8e: FP(fx,"adc a,%s",stro); break; case 0x96: FP(fx,"sub %s",stro); break; case 0x9e: FP(fx,"sbc a,%s",stro); break; case 0xa6: FP(fx,"and %s",stro); break; case 0xae: FP(fx,"xor %s",stro); break; case 0xb6: FP(fx,"or %s",stro); break; case 0xbe: FP(fx,"cp %s",stro); break; default: defb(3); FP(fx,"\t;illegal sequence"); return(3); }/*end switch t[1]*/ return(3); }/*end 0xdd and 0xfd group*/ r=ckrange(1,bstr); switch(comtab[t[0]].type) { case 0: FP(fx,"%s",comtab[t[0]].com1); FP(fx,"\t"); break; case 1: if(t[1]==-1) { return defb(-1); } FP(fx,"%s",comtab[t[0]].com1); FP(fx,"0%02xh",t[1]); break; case 2: if(r==-1) { return defb(-1); } FP(fx,"%s",comtab[t[0]].com1); FP(fx,"%s",bstr); break; case 3: if(t[1]==-1) { return defb(-1); } FP(fx,"%s",comtab[t[0]].com1); if(comtab[t[0]].bytes == 2) { /*jr and djnz instr. are 2 bytes type 3*/ /* don't need to check return value because we checked * t[1] above */ ckrange_rel(1,pc,rstr); FP(fx,"%s",rstr); } else { FP(fx,"0%02xh",t[1]);/*not jr*/ } break; case 11: if(t[1]==-1) { return defb(-1); } FP(fx,"%s",comtab[t[0]].com1); FP(fx,"0%02xh%s",t[1],comtab[t[0]].com2); break; case 12: if(r==-1) { return defb(-1); } FP(fx,"%s",comtab[t[0]].com1); FP(fx,"%s%s",bstr,comtab[t[0]].com2); break; } a=comtab[t[0]].bytes; if(comtab[t[0]].proc==1) { f_z80=1; } return(a); } int diz80_bytedata() { FP(fx, "\tdefb 0%02xh", t[0]); return 1; } int diz80_worddata() { if(t[1]==-1) { return diz80_bytedata(); } FP(fx, "\tdefw 0%04xh", t[0]+256*t[1]); return 2; } int diz80_pointers() { char bstr[MAX_LINE_LEN]; if(t[1]==-1) { return diz80_bytedata(); } ckrange(0, bstr); FP(fx, "\tdefw %s", bstr); if(pass == 1 && a_labels) { symbol_newref(t[0]+256*t[1], pc, cstdfw); } return 2; } int diz80_code() { int r; r=diz80(); if(pass == 1 && a_labels && r>0) { tosymtab(t,pc); } return r; } int disassemble() { if(t[0]==-1) { /*end of file*/ return(0); } switch(shiftin_blk->type) { case code: return diz80_code(); case bytedata: return diz80_bytedata(); case worddata: return diz80_worddata(); case pointers: return diz80_pointers(); } /* should never be reached! * (but for some reason gcc wants a return here) */ return 0; } void blk_reset() { shiftin_blk=blocks; shiftin_cnt=shiftin_blk->end - shiftin_blk->start; fseek(f1, 0, SEEK_SET); } int blk_iterate() { msg(2, "Disassembled block %s (0x%04x - 0x%04x)\n", shiftin_blk->name, shiftin_blk->start, shiftin_blk->end); shiftin_blk=shiftin_blk->next; if(shiftin_blk==NULL) return 0; shiftin_cnt=shiftin_blk->end - shiftin_blk->start; if(shiftin_blk->start != pc) { msg(2, "Debug: shiftin_blk->start == 0x%04x\n", shiftin_blk->start); msg(2, "Debug: pc == 0x%04x\n", pc); } return 1; } int main(int argc, char *argv[]) { FILE *pass1, *pass2; struct symbol *symb; int r,i,pci,sf; unsigned int start,end; fx = stdout;/*select terminal*/ cmdline(argc, argv); if(a_input) { f1=fopen(a_input, "rb"); if(f1==NULL) { msg(0, "Error: Cannot open %s: %s\n", a_input, strerror(errno)); exit(1); } } else { msg(0, "Error: No input file specified\n"); exit(1); } if(a_syminput) { r=symbol_load_file(a_syminput, 0); if(r) { exit(1); } } if(a_symoutput) { f2=fopen(a_symoutput, "w"); if(f2==NULL) { msg(0, "Error: Cannot create %s: %s\n", a_symoutput, strerror(errno)); exit(1); } } if(a_output==NULL) { f3=stdout; } else { f3=fopen(a_output, "w"); if(f3==NULL) { msg(0, "Error: Cannot create %s: %s\n", a_output, strerror(errno)); exit(1); } } start=a_org; end=a_org+file_len(a_input); if(end==start) { msg(0, "Error: Empty input file\n"); exit(1); } if(end>0x10000) { msg(0, "Error: Binary data outside 16-bit address space\n"); exit(1); } msg(1, "Disassembling binary data at 0x%04x - 0x%04x\n", start, end); block_init(start, end); if(a_blockfile) { r=block_load_file(a_blockfile); if(r) { exit(1); } } /* Temporary files to redirect pass1 and pass2 output. * * This is just a dirty hack to remove a lot of console output on * first two passes by diz80() */ pass1=tmpfile(); if(pass1==NULL) { msg(0, "Error: Cannot create temporary file: %s\n", strerror(errno)); exit(1); } pass2=tmpfile(); if(pass2==NULL) { msg(0, "Error: Cannot create temporary file: %s\n", strerror(errno)); exit(1); } /**************************pass 1*******************************/ /*In pass 1 addresses are calculated, arguments are stored in table*/ msg(1, "Starting pass 1\n"); pass=1; fx=pass1; pc=start; blk_reset(); do { for(i=0;icomment!=NULL) { FP(fx, "%s", symb->comment); } FP(fx,"%s:\n",symb->name); } } sf=1; /* print assembly instruction */ pci=disassemble(); if(pci==0) break; /* current address */ if(a_address||a_source) { FP(fx,"\t\t;%04x",pc); } if(a_source) { /* binary in hex... */ FP(fx,"\t"); for(i=0;i= 32) && (t[i] < 128)) { FP(fx,"%c ",t[i]); } else { FP(fx,". "); } } }/*end if a_source*/ FP(fx,"\n"); for(i=0;i #include #include #include #include "blocks.h" #include "symtab.h" #include "dz80.h" #include "utils.h" struct block *blocks=NULL; /* This function is used to create a default block that covers the entire * input file */ int block_init(int start, int end) { struct block *dest; dest=calloc(1, sizeof(*dest)); if(dest==NULL) return -1; dest->start=start; dest->end=end; dest->type=code; dest->prev=NULL; dest->next=NULL; dest->name=strdup("DEFAULT"); blocks=dest; return 0; } struct block *block_find(int addr) { struct block *cur; cur=blocks; while(cur!=NULL) { if(cur->start<=addr && cur->end>addr) { return cur; } cur=cur->next; } return NULL; } struct block *block_dup(struct block *src) { struct block *dest; dest=malloc(sizeof(*dest)); if(dest==NULL) return NULL; memcpy(dest, src, sizeof(*dest)); dest->name=strdup(src->name); return(dest); } /* TODO: Add support for general case of overlapping blocks. Some examples: * * before: <---- 1 ----><---- 2 -----> * after: <-- 1 --><-- 3 --><-- 2 --> * * before: <--- 1 ---><--- 2 ---><--- 3 ---> * after: <-- 1 --><----- 4 -----><-- 3 --> */ static struct block *block_new_insert(char *name, int start, int end) { struct block *parent, *parent2, *dest; parent=block_find(start); if(parent==NULL) { msg(0, "Error: Block defined outside of address space " "covered by binary data.\n"); return NULL; } if(block_find(end-1) != parent) { msg(0, "Error: New block overlaps with two or more blocks.\n"); msg(0, " This case isn't supported.\n"); return NULL; } /* Edge cases */ if(start == parent->start && end == parent->end) { msg(0, "Warning: Block '%s' overlaps completely with '%s'.\n", name, parent->name); free(parent->name); parent->name=strdup(name); return(parent); } dest=calloc(1, sizeof(*dest)); if(dest==NULL) return NULL; dest->name=strdup(name); dest->start=start; dest->end=end; if(start == parent->start) { /* new block at the beginning of the old block */ /* before: <--------- parent -------> */ /* after: <-- dest --><-- parent --> */ parent->start=dest->end; dest->prev=parent->prev; dest->next=parent; if(parent->prev!=NULL) { parent->prev->next=dest; } else { blocks=dest; } parent->prev=dest; } else if(end == parent->end) { /* new block at the end of the old block */ /* before: <--------- parent -------> */ /* after: <-- parent --><-- dest --> */ parent->end=dest->start; dest->prev=parent; dest->next=parent->next; if(parent->next!=NULL) { parent->next->prev=dest; } parent->next=dest; } else { /* new block in the middle of the old block */ parent2=block_dup(parent); /* before: <--------- parent ----------------------> */ /* after: <-- parent --><-- dest --><-- parent2 --> */ parent->end=dest->start; parent2->start=dest->end; parent->next=dest; dest->prev=parent; dest->next=parent2; parent2->prev=dest; if(parent2->next != NULL) { parent2->next->prev = parent2; } } return(dest); } struct block *block_new(char *name, int start, int end, enum blocktype type, enum labeltype start_label, enum labeltype end_label) { struct block *dest; struct symbol *symb; char tmp[MAX_LINE_LEN]; msg(2, "Debug: defining new block '%s' (start 0x%04x end 0x%04x)\n", name, start, end); dest=block_new_insert(name, start, end); if(dest==NULL) return NULL; if(start_label == LABEL_START_END || start_label == LABEL_FIRST_LAST) { if(start_label == LABEL_START_END) { snprintf(tmp, MAX_LINE_LEN, "%s_start", name); } else { snprintf(tmp, MAX_LINE_LEN, "%s_first", name); } symb = symbol_new(tmp, start, 100, 0); snprintf(tmp, MAX_LINE_LEN, "\n; BLOCK '%s' (start 0x%04x " "end 0x%04x)\n", name, start, end); symb->comment = strdup(tmp); } if(end_label == LABEL_START_END) { snprintf(tmp, MAX_LINE_LEN, "%s_end", name); symbol_new(tmp, end, 0, 0); } else if(end_label == LABEL_FIRST_LAST) { snprintf(tmp, MAX_LINE_LEN, "%s_last", name); symbol_new(tmp, end - 1, 0, 0); } dest->type=type; dest->start_label = start_label; dest->end_label = end_label; return dest; } int block_load_file(char *filename) { FILE *f; char line[MAX_LINE_LEN]; int r; int start,end; enum blocktype type; enum labeltype start_label, end_label; int lineno; char *name; struct block *blk; f=fopen(filename, "r"); if(f==NULL) { msg(0, "Error: Cannot open '%s': %s\n", filename, strerror(errno)); return -1; } lineno=1; while(fgets(line, MAX_LINE_LEN, f)!=NULL) { r=block_load_line(line, &name, &start, &end, &type, &start_label, &end_label); if(r<0) { msg(0, " at line %d of '%s'\n", lineno, filename); fclose(f); return -1; } if(r==1) { blk=block_new(name, start, end, type, start_label, end_label); if(blk==NULL) { msg(0, " at line %d of '%s'\n", lineno, filename); fclose(f); return -1; } free(name); } lineno++; } fclose(f); return 0; } /* TODO: Use split_line() from utils.c */ int block_load_line(char *line, char **name, int *start, int *end, enum blocktype *type, enum labeltype *start_label, enum labeltype *end_label) { int r; char *linec,*tok; char *named; int startd,endd,typed; enum labeltype start_labeld, end_labeld; /* First, remove any comments on the line. Everything past a ';' is * ignored */ if(line[0]==';') { return 0; } else { linec=strtok(line, ";"); } if(linec==NULL) return 0; /* empty line */ /* Skip leading white space */ tok=strtok(linec, " \t\r\n"); if(tok==NULL) return 0; /* empty line */ if(tok[strlen(tok)-1]!=':') { msg(0, "Error: ':' expected after block name '%s'\n", tok); /* not a label */ return -1; } tok[strlen(tok)-1]=0; named=tok; tok=strtok(NULL, " \t\r\n"); if(tok == NULL) { msg(0, "Error: 'unlabeled', 'start' or 'first' expected\n"); return -1; } if(!strcasecmp(tok, "start")) { start_labeld = LABEL_START_END; } else if(!strcasecmp(tok, "first")) { start_labeld = LABEL_FIRST_LAST; } else if(!strcasecmp(tok, "unlabeled")) { start_labeld = LABEL_NONE; tok = strtok(NULL, " \t\r\n"); if(tok == NULL || (strcasecmp(tok, "start") && strcasecmp(tok, "first"))) { msg(0, "Error: 'start' or 'first' expected, " "got '%s' instead\n", tok); return -1; } } else { msg(0, "Error: 'unlabeled', 'start' or 'first' expected\n"); return -1; } tok=strtok(NULL, " \t\r\n"); if(tok==NULL) { msg(0, "Error: Start address expected\n"); return -1; } r=sscanf(tok, "%i", &startd); if(r!=1) { msg(0, "Error: Invalid start address '%s'\n", tok); return -1; } tok=strtok(NULL, " \t\r\n"); if(tok == NULL) { msg(0, "Error: 'unlabeled', 'end' or 'last' expected\n"); return -1; } int is_last; if(!strcasecmp(tok, "end")) { end_labeld = LABEL_START_END; is_last = 0; } else if(!strcasecmp(tok, "last")) { end_labeld = LABEL_FIRST_LAST; is_last = 1; } else if(!strcasecmp(tok, "unlabeled")) { end_labeld = LABEL_NONE; tok = strtok(NULL, " \t\r\n"); if(tok != NULL && !strcasecmp(tok, "end")) { is_last = 0; } else if(tok != NULL && !strcasecmp(tok, "last")) { is_last = 1; } else { msg(0, "Error: 'end' or 'last' expected, " "got '%s' instead\n", tok); return -1; } } else { msg(0, "Error: 'unlabeled', 'end' or 'last' expected\n"); return -1; } tok=strtok(NULL, " \t\r\n"); if(tok==NULL) { msg(0, "Error: End address expected\n"); return -1; } r=sscanf(tok, "%i", &endd); if(r != 1) { msg(0, "Error: Invalid end address '%s'\n", tok); return -1; } if(is_last) { endd++; } if(endd <= startd) { msg(0, "Error: End address '%x' before start address '%x'\n", endd, startd); return -1; } tok=strtok(NULL, " \t\r\n"); if(tok==NULL || strcasecmp(tok, "type")) { msg(0, "Error: 'type' expected\n"); return -1; } tok=strtok(NULL, " \t\r\n"); if(tok==NULL) { msg(0, "Error: Block type expected\n"); return -1; } if(!strcmp(tok, "code")) { typed=code; } else if(!strcmp(tok, "bytedata")) { typed=bytedata; } else if(!strcmp(tok, "worddata")) { typed=worddata; } else if(!strcmp(tok, "pointers")) { typed=pointers; } else { msg(0, "Error: Invalid block type '%s'\n", tok); return -1; } *name=strdup(named); *start=startd; *end=endd; *type=typed; *start_label = start_labeld; *end_label = end_labeld; return 1; } z80dasm-1.1.5/compile0000755000175000017500000001624513141301313011301 00000000000000#! /bin/sh # Wrapper for compilers which do not understand '-c -o'. scriptversion=2012-10-14.11; # UTC # Copyright (C) 1999-2013 Free Software Foundation, Inc. # Written by Tom Tromey . # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # This file is maintained in Automake, please report # bugs to or send patches to # . nl=' ' # We need space, tab and new line, in precisely that order. Quoting is # there to prevent tools from complaining about whitespace usage. IFS=" "" $nl" file_conv= # func_file_conv build_file lazy # Convert a $build file to $host form and store it in $file # Currently only supports Windows hosts. If the determined conversion # type is listed in (the comma separated) LAZY, no conversion will # take place. func_file_conv () { file=$1 case $file in / | /[!/]*) # absolute file, and not a UNC file if test -z "$file_conv"; then # lazily determine how to convert abs files case `uname -s` in MINGW*) file_conv=mingw ;; CYGWIN*) file_conv=cygwin ;; *) file_conv=wine ;; esac fi case $file_conv/,$2, in *,$file_conv,*) ;; mingw/*) file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` ;; cygwin/*) file=`cygpath -m "$file" || echo "$file"` ;; wine/*) file=`winepath -w "$file" || echo "$file"` ;; esac ;; esac } # func_cl_dashL linkdir # Make cl look for libraries in LINKDIR func_cl_dashL () { func_file_conv "$1" if test -z "$lib_path"; then lib_path=$file else lib_path="$lib_path;$file" fi linker_opts="$linker_opts -LIBPATH:$file" } # func_cl_dashl library # Do a library search-path lookup for cl func_cl_dashl () { lib=$1 found=no save_IFS=$IFS IFS=';' for dir in $lib_path $LIB do IFS=$save_IFS if $shared && test -f "$dir/$lib.dll.lib"; then found=yes lib=$dir/$lib.dll.lib break fi if test -f "$dir/$lib.lib"; then found=yes lib=$dir/$lib.lib break fi if test -f "$dir/lib$lib.a"; then found=yes lib=$dir/lib$lib.a break fi done IFS=$save_IFS if test "$found" != yes; then lib=$lib.lib fi } # func_cl_wrapper cl arg... # Adjust compile command to suit cl func_cl_wrapper () { # Assume a capable shell lib_path= shared=: linker_opts= for arg do if test -n "$eat"; then eat= else case $1 in -o) # configure might choose to run compile as 'compile cc -o foo foo.c'. eat=1 case $2 in *.o | *.[oO][bB][jJ]) func_file_conv "$2" set x "$@" -Fo"$file" shift ;; *) func_file_conv "$2" set x "$@" -Fe"$file" shift ;; esac ;; -I) eat=1 func_file_conv "$2" mingw set x "$@" -I"$file" shift ;; -I*) func_file_conv "${1#-I}" mingw set x "$@" -I"$file" shift ;; -l) eat=1 func_cl_dashl "$2" set x "$@" "$lib" shift ;; -l*) func_cl_dashl "${1#-l}" set x "$@" "$lib" shift ;; -L) eat=1 func_cl_dashL "$2" ;; -L*) func_cl_dashL "${1#-L}" ;; -static) shared=false ;; -Wl,*) arg=${1#-Wl,} save_ifs="$IFS"; IFS=',' for flag in $arg; do IFS="$save_ifs" linker_opts="$linker_opts $flag" done IFS="$save_ifs" ;; -Xlinker) eat=1 linker_opts="$linker_opts $2" ;; -*) set x "$@" "$1" shift ;; *.cc | *.CC | *.cxx | *.CXX | *.[cC]++) func_file_conv "$1" set x "$@" -Tp"$file" shift ;; *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO]) func_file_conv "$1" mingw set x "$@" "$file" shift ;; *) set x "$@" "$1" shift ;; esac fi shift done if test -n "$linker_opts"; then linker_opts="-link$linker_opts" fi exec "$@" $linker_opts exit 1 } eat= case $1 in '') echo "$0: No command. Try '$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: compile [--help] [--version] PROGRAM [ARGS] Wrapper for compilers which do not understand '-c -o'. Remove '-o dest.o' from ARGS, run PROGRAM with the remaining arguments, and rename the output as expected. If you are trying to build a whole package this is not the right script to run: please start by reading the file 'INSTALL'. Report bugs to . EOF exit $? ;; -v | --v*) echo "compile $scriptversion" exit $? ;; cl | *[/\\]cl | cl.exe | *[/\\]cl.exe ) func_cl_wrapper "$@" # Doesn't return... ;; esac ofile= cfile= for arg do if test -n "$eat"; then eat= else case $1 in -o) # configure might choose to run compile as 'compile cc -o foo foo.c'. # So we strip '-o arg' only if arg is an object. eat=1 case $2 in *.o | *.obj) ofile=$2 ;; *) set x "$@" -o "$2" shift ;; esac ;; *.c) cfile=$1 set x "$@" "$1" shift ;; *) set x "$@" "$1" shift ;; esac fi shift done if test -z "$ofile" || test -z "$cfile"; then # If no '-o' option was seen then we might have been invoked from a # pattern rule where we don't need one. That is ok -- this is a # normal compilation that the losing compiler can handle. If no # '.c' file was seen then we are probably linking. That is also # ok. exec "$@" fi # Name of file we expect compiler to create. cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'` # Create the lock directory. # Note: use '[/\\:.-]' here to ensure that we don't use the same name # that we are using for the .o file. Also, base the name on the expected # object file name, since that is what matters with a parallel build. lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d while true; do if mkdir "$lockdir" >/dev/null 2>&1; then break fi sleep 1 done # FIXME: race condition here if user kills between mkdir and trap. trap "rmdir '$lockdir'; exit 1" 1 2 15 # Run the compile. "$@" ret=$? if test -f "$cofile"; then test "$cofile" = "$ofile" || mv "$cofile" "$ofile" elif test -f "${cofile}bj"; then test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile" fi rmdir "$lockdir" exit $ret # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: z80dasm-1.1.5/depcomp0000755000175000017500000005064313127235430011312 00000000000000#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2012-03-27.16; # UTC # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009, 2010, # 2011, 2012 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Alexandre Oliva . case $1 in '') echo "$0: No command. Try '$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: depcomp [--help] [--version] PROGRAM [ARGS] Run PROGRAMS ARGS to compile a file, generating dependencies as side-effects. Environment variables: depmode Dependency tracking mode. source Source file read by 'PROGRAMS ARGS'. object Object file output by 'PROGRAMS ARGS'. DEPDIR directory where to store dependencies. depfile Dependency file to output. tmpdepfile Temporary file to use when outputting dependencies. libtool Whether libtool is used (yes/no). Report bugs to . EOF exit $? ;; -v | --v*) echo "depcomp $scriptversion" exit $? ;; esac # A tabulation character. tab=' ' # A newline character. nl=' ' if test -z "$depmode" || test -z "$source" || test -z "$object"; then echo "depcomp: Variables source, object and depmode must be set" 1>&2 exit 1 fi # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. depfile=${depfile-`echo "$object" | sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case # here, because this file can only contain one case statement. if test "$depmode" = hp; then # HP compiler uses -M and no extra arg. gccflag=-M depmode=gcc fi if test "$depmode" = dashXmstdout; then # This is just like dashmstdout with a different argument. dashmflag=-xM depmode=dashmstdout fi cygpath_u="cygpath -u -f -" if test "$depmode" = msvcmsys; then # This is just like msvisualcpp but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u='sed s,\\\\,/,g' depmode=msvisualcpp fi if test "$depmode" = msvc7msys; then # This is just like msvc7 but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u='sed s,\\\\,/,g' depmode=msvc7 fi if test "$depmode" = xlc; then # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency informations. gccflag=-qmakedep=gcc,-MF depmode=gcc fi case "$depmode" in gcc3) ## gcc 3 implements dependency tracking that does exactly what ## we want. Yay! Note: for some reason libtool 1.4 doesn't like ## it if -MD -MP comes after the -MF stuff. Hmm. ## Unfortunately, FreeBSD c89 acceptance of flags depends upon ## the command line argument order; so add the flags where they ## appear in depend2.am. Note that the slowdown incurred here ## affects only configure: in makefiles, %FASTDEP% shortcuts this. for arg do case $arg in -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; *) set fnord "$@" "$arg" ;; esac shift # fnord shift # $arg done "$@" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like ## -MM, not -M (despite what the docs say). ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then gccflag=-MD, fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz ## The second -e expression handles DOS-style file names with drive letters. sed -e 's/^[^:]*: / /' \ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" ## This next piece of magic avoids the "deleted header file" problem. ## The problem is that when a header file which appears in a .P file ## is deleted, the dependency causes make to die (because there is ## typically no way to rebuild the header). We avoid this by adding ## dummy dependencies for each header file. Too bad gcc doesn't do ## this for us directly. tr ' ' "$nl" < "$tmpdepfile" | ## Some versions of gcc put a space before the ':'. On the theory ## that the space means something, we add a space to the output as ## well. hp depmode also adds that space, but also prefixes the VPATH ## to the object. Take care to not repeat it in the output. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files echo "$object : \\" > "$depfile" # Clip off the initial element (the dependent). Don't try to be # clever and replace this with sed code, as IRIX sed won't handle # lines with more than a fixed number of characters (4096 in # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; # the IRIX cc adds comments like '#:fec' to the end of the # dependency line. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ tr "$nl" ' ' >> "$depfile" echo >> "$depfile" # The second pass generates a dummy entry for each header file. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; xlc) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. In older versions, this file always lives in the # current directory. Also, the AIX compiler puts '$object:' at the # start of each line; $object doesn't have directory information. # Version 6 uses the directory in both cases. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then tmpdepfile1=$dir$base.u tmpdepfile2=$base.u tmpdepfile3=$dir.libs/$base.u "$@" -Wc,-M else tmpdepfile1=$dir$base.u tmpdepfile2=$dir$base.u tmpdepfile3=$dir$base.u "$@" -M fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then # Each line is of the form 'foo.o: dependent.h'. # Do two passes, one to just change these to # '$object: dependent.h' and one to simply 'dependent.h:'. sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; icc) # Intel's C compiler anf tcc (Tiny C Compiler) understand '-MD -MF file'. # However on # $CC -MD -MF foo.d -c -o sub/foo.o sub/foo.c # ICC 7.0 will fill foo.d with something like # foo.o: sub/foo.c # foo.o: sub/foo.h # which is wrong. We want # sub/foo.o: sub/foo.c # sub/foo.o: sub/foo.h # sub/foo.c: # sub/foo.h: # ICC 7.1 will output # foo.o: sub/foo.c sub/foo.h # and will wrap long lines using '\': # foo.o: sub/foo.c ... \ # sub/foo.h ... \ # ... # tcc 0.9.26 (FIXME still under development at the moment of writing) # will emit a similar output, but also prepend the continuation lines # with horizontal tabulation characters. "$@" -MD -MF "$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each line is of the form 'foo.o: dependent.h', # or 'foo.o: dep1.h dep2.h \', or ' dep3.h dep4.h \'. # Do two passes, one to just change these to # '$object: dependent.h' and one to simply 'dependent.h:'. sed -e "s/^[ $tab][ $tab]*/ /" -e "s,^[^:]*:,$object :," \ < "$tmpdepfile" > "$depfile" sed ' s/[ '"$tab"'][ '"$tab"']*/ /g s/^ *// s/ *\\*$// s/^[^:]*: *// /^$/d /:$/d s/$/ :/ ' < "$tmpdepfile" >> "$depfile" rm -f "$tmpdepfile" ;; hp2) # The "hp" stanza above does not work with aCC (C++) and HP's ia64 # compilers, which have integrated preprocessors. The correct option # to use with these is +Maked; it writes dependencies to a file named # 'foo.d', which lands next to the object file, wherever that # happens to be. # Much of this is similar to the tru64 case; see comments there. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then tmpdepfile1=$dir$base.d tmpdepfile2=$dir.libs/$base.d "$@" -Wc,+Maked else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d "$@" +Maked fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" # Add 'dependent.h:' lines. sed -ne '2,${ s/^ *// s/ \\*$// s/$/:/ p }' "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" "$tmpdepfile2" ;; tru64) # The Tru64 compiler uses -MD to generate dependencies as a side # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'. # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put # dependencies in 'foo.d' instead, so we check for that too. # Subdirectories are respected. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then # With Tru64 cc, shared objects can also be used to make a # static library. This mechanism is used in libtool 1.4 series to # handle both shared and static libraries in a single compilation. # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. # # With libtool 1.5 this exception was removed, and libtool now # generates 2 separate objects for the 2 libraries. These two # compilations output dependencies in $dir.libs/$base.o.d and # in $dir$base.o.d. We have to check for both files, because # one of the two compilations can be disabled. We should prefer # $dir$base.o.d over $dir.libs/$base.o.d because the latter is # automatically cleaned when .libs/ is deleted, while ignoring # the former would cause a distcleancheck panic. tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 tmpdepfile2=$dir$base.o.d # libtool 1.5 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 "$@" -Wc,-MD else tmpdepfile1=$dir$base.o.d tmpdepfile2=$dir$base.d tmpdepfile3=$dir$base.d tmpdepfile4=$dir$base.d "$@" -MD fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; msvc7) if test "$libtool" = yes; then showIncludes=-Wc,-showIncludes else showIncludes=-showIncludes fi "$@" $showIncludes > "$tmpdepfile" stat=$? grep -v '^Note: including file: ' "$tmpdepfile" if test "$stat" = 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" # The first sed program below extracts the file names and escapes # backslashes for cygpath. The second sed program outputs the file # name when reading, but also accumulates all include files in the # hold buffer in order to output them again at the end. This only # works with sed implementations that can handle large buffers. sed < "$tmpdepfile" -n ' /^Note: including file: *\(.*\)/ { s//\1/ s/\\/\\\\/g p }' | $cygpath_u | sort -u | sed -n ' s/ /\\ /g s/\(.*\)/'"$tab"'\1 \\/p s/.\(.*\) \\/\1:/ H $ { s/.*/'"$tab"'/ G p }' >> "$depfile" rm -f "$tmpdepfile" ;; msvc7msys) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; #nosideeffect) # This comment above is used by automake to tell side-effect # dependency tracking mechanisms from slower ones. dashmstdout) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove '-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done test -z "$dashmflag" && dashmflag=-M # Require at least two characters before searching for ':' # in the target name. This is to cope with DOS-style filenames: # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise. "$@" $dashmflag | sed 's:^['"$tab"' ]*[^:'"$tab"' ][^:][^:]*\:['"$tab"' ]*:'"$object"'\: :' > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" tr ' ' "$nl" < "$tmpdepfile" | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; dashXmstdout) # This case only exists to satisfy depend.m4. It is never actually # run, as this mode is specially recognized in the preamble. exit 1 ;; makedepend) "$@" || exit $? # Remove any Libtool call if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # X makedepend shift cleared=no eat=no for arg do case $cleared in no) set ""; shift cleared=yes ;; esac if test $eat = yes; then eat=no continue fi case "$arg" in -D*|-I*) set fnord "$@" "$arg"; shift ;; # Strip any option that makedepend may not understand. Remove # the object too, otherwise makedepend will parse it as a source file. -arch) eat=yes ;; -*|$object) ;; *) set fnord "$@" "$arg"; shift ;; esac done obj_suffix=`echo "$object" | sed 's/^.*\././'` touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$depfile" # makedepend may prepend the VPATH from the source file name to the object. # No need to regex-escape $object, excess matching of '.' is harmless. sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile" sed '1,2d' "$tmpdepfile" | tr ' ' "$nl" | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" "$tmpdepfile".bak ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove '-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done "$@" -E | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | sed '$ s: \\$::' > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" cat < "$tmpdepfile" >> "$depfile" sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; msvisualcpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi IFS=" " for arg do case "$arg" in -o) shift ;; $object) shift ;; "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E 2>/dev/null | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile" echo "$tab" >> "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; msvcmsys) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; none) exec "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0 # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: z80dasm-1.1.5/missing0000755000175000017500000001533013141301364011322 00000000000000#! /bin/sh # Common wrapper for a few potentially missing GNU programs. scriptversion=2013-10-28.13; # UTC # Copyright (C) 1996-2013 Free Software Foundation, Inc. # Originally written by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try '$0 --help' for more information" exit 1 fi case $1 in --is-lightweight) # Used by our autoconf macros to check whether the available missing # script is modern enough. exit 0 ;; --run) # Back-compat with the calling convention used by older automake. shift ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due to PROGRAM being missing or too old. Options: -h, --help display this help and exit -v, --version output version information and exit Supported PROGRAM values: aclocal autoconf autoheader autom4te automake makeinfo bison yacc flex lex help2man Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and 'g' are ignored when checking the name. Send bug reports to ." exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit $? ;; -*) echo 1>&2 "$0: unknown '$1' option" echo 1>&2 "Try '$0 --help' for more information" exit 1 ;; esac # Run the given program, remember its exit status. "$@"; st=$? # If it succeeded, we are done. test $st -eq 0 && exit 0 # Also exit now if we it failed (or wasn't found), and '--version' was # passed; such an option is passed most likely to detect whether the # program is present and works. case $2 in --version|--help) exit $st;; esac # Exit code 63 means version mismatch. This often happens when the user # tries to use an ancient version of a tool on a file that requires a # minimum version. if test $st -eq 63; then msg="probably too old" elif test $st -eq 127; then # Program was missing. msg="missing on your system" else # Program was found and executed, but failed. Give up. exit $st fi perl_URL=http://www.perl.org/ flex_URL=http://flex.sourceforge.net/ gnu_software_URL=http://www.gnu.org/software program_details () { case $1 in aclocal|automake) echo "The '$1' program is part of the GNU Automake package:" echo "<$gnu_software_URL/automake>" echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:" echo "<$gnu_software_URL/autoconf>" echo "<$gnu_software_URL/m4/>" echo "<$perl_URL>" ;; autoconf|autom4te|autoheader) echo "The '$1' program is part of the GNU Autoconf package:" echo "<$gnu_software_URL/autoconf/>" echo "It also requires GNU m4 and Perl in order to run:" echo "<$gnu_software_URL/m4/>" echo "<$perl_URL>" ;; esac } give_advice () { # Normalize program name to check for. normalized_program=`echo "$1" | sed ' s/^gnu-//; t s/^gnu//; t s/^g//; t'` printf '%s\n' "'$1' is $msg." configure_deps="'configure.ac' or m4 files included by 'configure.ac'" case $normalized_program in autoconf*) echo "You should only need it if you modified 'configure.ac'," echo "or m4 files included by it." program_details 'autoconf' ;; autoheader*) echo "You should only need it if you modified 'acconfig.h' or" echo "$configure_deps." program_details 'autoheader' ;; automake*) echo "You should only need it if you modified 'Makefile.am' or" echo "$configure_deps." program_details 'automake' ;; aclocal*) echo "You should only need it if you modified 'acinclude.m4' or" echo "$configure_deps." program_details 'aclocal' ;; autom4te*) echo "You might have modified some maintainer files that require" echo "the 'autom4te' program to be rebuilt." program_details 'autom4te' ;; bison*|yacc*) echo "You should only need it if you modified a '.y' file." echo "You may want to install the GNU Bison package:" echo "<$gnu_software_URL/bison/>" ;; lex*|flex*) echo "You should only need it if you modified a '.l' file." echo "You may want to install the Fast Lexical Analyzer package:" echo "<$flex_URL>" ;; help2man*) echo "You should only need it if you modified a dependency" \ "of a man page." echo "You may want to install the GNU Help2man package:" echo "<$gnu_software_URL/help2man/>" ;; makeinfo*) echo "You should only need it if you modified a '.texi' file, or" echo "any other file indirectly affecting the aspect of the manual." echo "You might want to install the Texinfo package:" echo "<$gnu_software_URL/texinfo/>" echo "The spurious makeinfo call might also be the consequence of" echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might" echo "want to install GNU make:" echo "<$gnu_software_URL/make/>" ;; *) echo "You might have modified some files without having the proper" echo "tools for further handling them. Check the 'README' file, it" echo "often tells you about the needed prerequisites for installing" echo "this package. You may also peek at any GNU archive site, in" echo "case some other package contains this missing '$1' program." ;; esac } give_advice "$1" | sed -e '1s/^/WARNING: /' \ -e '2,$s/^/ /' >&2 # Propagate the correct exit status (expected to be 127 for a program # not found, 63 for a program that failed due to version mismatch). exit $st # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: z80dasm-1.1.5/ChangeLog0000644000175000017500000000000012743450416011473 00000000000000z80dasm-1.1.5/configure0000755000175000017500000043417413141301363011644 00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69 for z80dasm 1.1.5. # # Report bugs to . # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then _as_can_reexec=no; export _as_can_reexec; # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 as_fn_exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org and $0: tomaz.solc@tablix.org about your system, including any $0: error possibly output before this message. Then install $0: a modern shell, or manually run the script under such a $0: shell if you do have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall # in an infinite loop. This has already happened in practice. _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME='z80dasm' PACKAGE_TARNAME='z80dasm' PACKAGE_VERSION='1.1.5' PACKAGE_STRING='z80dasm 1.1.5' PACKAGE_BUGREPORT='tomaz.solc@tablix.org' PACKAGE_URL='' ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS LIBOBJS am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE am__nodep AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__quote am__include DEPDIR OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC AM_BACKSLASH AM_DEFAULT_VERBOSITY AM_DEFAULT_V AM_V am__untar am__tar AMTAR am__leading_dot SET_MAKE AWK mkdir_p MKDIR_P INSTALL_STRIP_PROGRAM STRIP install_sh MAKEINFO AUTOHEADER AUTOMAKE AUTOCONF ACLOCAL VERSION PACKAGE CYGPATH_W am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking enable_silent_rules enable_dependency_tracking ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures z80dasm 1.1.5 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/z80dasm] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of z80dasm 1.1.5:";; esac cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-silent-rules less verbose build output (undo: "make V=1") --disable-silent-rules verbose build output (undo: "make V=0") --enable-dependency-tracking do not reject slow dependency extractors --disable-dependency-tracking speeds up one-time build Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to . _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF z80dasm configure 1.1.5 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_compile cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by z80dasm $as_me 1.1.5, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu am__api_version='1.14' ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if ${ac_cv_path_install+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in #(( ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 $as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 $as_echo_n "checking whether build environment is sane... " >&6; } # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[\\\"\#\$\&\'\`$am_lf]*) as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; esac case $srcdir in *[\\\"\#\$\&\'\`$am_lf\ \ ]*) as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; esac # Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". as_fn_error $? "ls -t appears to fail. Make sure there is not a broken alias in your environment" "$LINENO" 5 fi if test "$2" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$2" = conftest.file ) then # Ok. : else as_fn_error $? "newly created file is older than distributed files! Check your system clock" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi rm -f conftest.file test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. # By default was `s,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` # Expand $ac_aux_dir to an absolute path. am_aux_dir=`cd "$ac_aux_dir" && pwd` if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} fi if test x"${install_sh}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi # Installed binaries are usually stripped using 'strip' when the user # run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the 'STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if ${ac_cv_path_mkdir+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi test -d ./--version && rmdir ./--version if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. MKDIR_P="$ac_install_sh -d" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 $as_echo "$MKDIR_P" >&6; } for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null # Check whether --enable-silent-rules was given. if test "${enable_silent_rules+set}" = set; then : enableval=$enable_silent_rules; fi case $enable_silent_rules in # ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=1;; esac am_make=${MAKE-make} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } if ${am_cv_make_support_nested_variables+:} false; then : $as_echo_n "(cached) " >&6 else if $as_echo 'TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 $as_echo "$am_cv_make_support_nested_variables" >&6; } if test $am_cv_make_support_nested_variables = yes; then AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AM_BACKSLASH='\' if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE='z80dasm' VERSION='1.1.5' cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # mkdir_p='$(MKDIR_P)' # We need awk for the "check" target. The system "awk" is bad on # some platforms. # Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AMTAR='$${TAR-tar}' # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar pax cpio none' am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is # actually supported "in the wild" to an acceptable degree. # See automake bug#10828. # To make any issue more visible, cause the running configure to be aborted # by default if the 'rm' program in use doesn't match our expectations; the # user can still override this though. if rm -f && rm -fr && rm -rf; then : OK; else cat >&2 <<'END' Oops! Your 'rm' program seems unable to run without file operands specified on the command line, even when the '-f' option is present. This is contrary to the behaviour of most rm programs out there, and not conforming with the upcoming POSIX standard: Please tell bug-automake@gnu.org about your system, including the value of your $PATH and any error possibly output before this message. This can help us improve future automake versions. END if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then echo 'Configuration will proceed anyway, since you have set the' >&2 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 echo >&2 else cat >&2 <<'END' Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM to "yes", and re-run configure. END as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 fi fi ac_config_headers="$ac_config_headers config.h" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 $as_echo_n "checking whether the C compiler works... " >&6; } ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi if test -z "$ac_file"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 $as_echo_n "checking for C compiler default output file name... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 $as_echo_n "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 $as_echo "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } if ${ac_cv_objext+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 $as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include struct stat; /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } if ${am_cv_prog_cc_c_o+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF # Make sure it works both with $CC and with simple cc. # Following AC_PROG_CC_C_O, we do the test twice because some # compilers refuse to overwrite an existing .o file with -o, # though they will create one. am_cv_prog_cc_c_o=yes for am_i in 1 2; do if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } \ && test -f conftest2.$ac_objext; then : OK else am_cv_prog_cc_c_o=no break fi done rm -f core conftest* unset am_i fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 $as_echo "$am_cv_prog_cc_c_o" >&6; } if test "$am_cv_prog_cc_c_o" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 $as_echo_n "checking for style of include used by $am_make... " >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from 'make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 $as_echo "$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then : enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi depcc="$CC" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CC_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 $as_echo_n "checking that generated files are newer than configure... " >&6; } if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 $as_echo "done" >&6; } if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= fi if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then as_fn_error $? "conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by z80dasm $as_me 1.1.5, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ z80dasm config.status 1.1.5 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" Copyright (C) 2012 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= ac_tmp= trap 'exit_status=$? : "${ac_tmp:=$tmp}" { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF # Transform confdefs.h into an awk script `defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. # Create a delimiter string that does not exist in confdefs.h, to ease # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do ac_tt=`sed -n "/$ac_delim/p" confdefs.h` if test -z "$ac_tt"; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done # For the awk script, D is an array of macro values keyed by name, # likewise P contains macro parameters if any. Preserve backslash # newline sequences. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* sed -n ' s/.\{148\}/&'"$ac_delim"'/g t rset :rset s/^[ ]*#[ ]*define[ ][ ]*/ / t def d :def s/\\$// t bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3"/p s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p d :bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3\\\\\\n"\\/p t cont s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p t cont d :cont n s/.\{148\}/&'"$ac_delim"'/g t clear :clear s/\\$// t bsnlc s/["\\]/\\&/g; s/^/"/; s/$/"/p d :bsnlc s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p b cont ' >$CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 for (key in D) D_is_set[key] = 1 FS = "" } /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { line = \$ 0 split(line, arg, " ") if (arg[1] == "#") { defundef = arg[2] mac1 = arg[3] } else { defundef = substr(arg[1], 2) mac1 = arg[2] } split(mac1, mac2, "(") #) macro = mac2[1] prefix = substr(line, 1, index(line, defundef) - 1) if (D_is_set[macro]) { # Preserve the white space surrounding the "#". print prefix "define", macro P[macro] D[macro] next } else { # Replace #undef with comments. This is necessary, for example, # in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. if (defundef == "undef") { print "/*", prefix defundef, macro, "*/" next } } } { print } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 $as_echo "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi # Compute "$ac_file"'s index in $config_headers. _am_arg="$ac_file" _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$_am_arg" : 'X\(//\)[^/]' \| \ X"$_am_arg" : 'X\(//\)$' \| \ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$_am_arg" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'`/stamp-h$_am_stamp_count ;; :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 $as_echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || { # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named 'Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`$as_dirname -- "$mf" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running 'make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "$am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir=$dirpart/$fdir; as_fn_mkdir_p # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi z80dasm-1.1.5/INSTALL0000644000175000017500000002231012743450416010762 00000000000000Installation Instructions ************************* Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005, 2006 Free Software Foundation, Inc. This file is free documentation; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. Basic Installation ================== Briefly, the shell commands `./configure; make; make install' should configure, build, and install this package. The following more-detailed instructions are generic; see the `README' file for instructions specific to this package. The `configure' shell script attempts to guess correct values for various system-dependent variables used during compilation. It uses those values to create a `Makefile' in each directory of the package. It may also create one or more `.h' files containing system-dependent definitions. Finally, it creates a shell script `config.status' that you can run in the future to recreate the current configuration, and a file `config.log' containing compiler output (useful mainly for debugging `configure'). It can also use an optional file (typically called `config.cache' and enabled with `--cache-file=config.cache' or simply `-C') that saves the results of its tests to speed up reconfiguring. Caching is disabled by default to prevent problems with accidental use of stale cache files. If you need to do unusual things to compile the package, please try to figure out how `configure' could check whether to do them, and mail diffs or instructions to the address given in the `README' so they can be considered for the next release. If you are using the cache, and at some point `config.cache' contains results you don't want to keep, you may remove or edit it. The file `configure.ac' (or `configure.in') is used to create `configure' by a program called `autoconf'. You need `configure.ac' if you want to change it or regenerate `configure' using a newer version of `autoconf'. The simplest way to compile this package is: 1. `cd' to the directory containing the package's source code and type `./configure' to configure the package for your system. Running `configure' might take a while. While running, it prints some messages telling which features it is checking for. 2. Type `make' to compile the package. 3. Optionally, type `make check' to run any self-tests that come with the package. 4. Type `make install' to install the programs and any data files and documentation. 5. You can remove the program binaries and object files from the source code directory by typing `make clean'. To also remove the files that `configure' created (so you can compile the package for a different kind of computer), type `make distclean'. There is also a `make maintainer-clean' target, but that is intended mainly for the package's developers. If you use it, you may have to get all sorts of other programs in order to regenerate files that came with the distribution. Compilers and Options ===================== Some systems require unusual options for compilation or linking that the `configure' script does not know about. Run `./configure --help' for details on some of the pertinent environment variables. You can give `configure' initial values for configuration parameters by setting variables in the command line or in the environment. Here is an example: ./configure CC=c99 CFLAGS=-g LIBS=-lposix *Note Defining Variables::, for more details. Compiling For Multiple Architectures ==================================== You can compile the package for more than one kind of computer at the same time, by placing the object files for each architecture in their own directory. To do this, you can use GNU `make'. `cd' to the directory where you want the object files and executables to go and run the `configure' script. `configure' automatically checks for the source code in the directory that `configure' is in and in `..'. With a non-GNU `make', it is safer to compile the package for one architecture at a time in the source code directory. After you have installed the package for one architecture, use `make distclean' before reconfiguring for another architecture. Installation Names ================== By default, `make install' installs the package's commands under `/usr/local/bin', include files under `/usr/local/include', etc. You can specify an installation prefix other than `/usr/local' by giving `configure' the option `--prefix=PREFIX'. You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you pass the option `--exec-prefix=PREFIX' to `configure', the package uses PREFIX as the prefix for installing programs and libraries. Documentation and other data files still use the regular prefix. In addition, if you use an unusual directory layout you can give options like `--bindir=DIR' to specify different values for particular kinds of files. Run `configure --help' for a list of the directories you can set and what kinds of files go in them. If the package supports it, you can cause programs to be installed with an extra prefix or suffix on their names by giving `configure' the option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. Optional Features ================= Some packages pay attention to `--enable-FEATURE' options to `configure', where FEATURE indicates an optional part of the package. They may also pay attention to `--with-PACKAGE' options, where PACKAGE is something like `gnu-as' or `x' (for the X Window System). The `README' should mention any `--enable-' and `--with-' options that the package recognizes. For packages that use the X Window System, `configure' can usually find the X include and library files automatically, but if it doesn't, you can use the `configure' options `--x-includes=DIR' and `--x-libraries=DIR' to specify their locations. Specifying the System Type ========================== There may be some features `configure' cannot figure out automatically, but needs to determine by the type of machine the package will run on. Usually, assuming the package is built to be run on the _same_ architectures, `configure' can figure that out, but if it prints a message saying it cannot guess the machine type, give it the `--build=TYPE' option. TYPE can either be a short name for the system type, such as `sun4', or a canonical name which has the form: CPU-COMPANY-SYSTEM where SYSTEM can have one of these forms: OS KERNEL-OS See the file `config.sub' for the possible values of each field. If `config.sub' isn't included in this package, then this package doesn't need to know the machine type. If you are _building_ compiler tools for cross-compiling, you should use the option `--target=TYPE' to select the type of system they will produce code for. If you want to _use_ a cross compiler, that generates code for a platform different from the build platform, you should specify the "host" platform (i.e., that on which the generated programs will eventually be run) with `--host=TYPE'. Sharing Defaults ================ If you want to set default values for `configure' scripts to share, you can create a site shell script called `config.site' that gives default values for variables like `CC', `cache_file', and `prefix'. `configure' looks for `PREFIX/share/config.site' if it exists, then `PREFIX/etc/config.site' if it exists. Or, you can set the `CONFIG_SITE' environment variable to the location of the site script. A warning: not all `configure' scripts look for a site script. Defining Variables ================== Variables not defined in a site shell script can be set in the environment passed to `configure'. However, some packages may run configure again during the build, and the customized values of these variables may be lost. In order to avoid this problem, you should set them in the `configure' command line, using `VAR=value'. For example: ./configure CC=/usr/local2/bin/gcc causes the specified `gcc' to be used as the C compiler (unless it is overridden in the site shell script). Unfortunately, this technique does not work for `CONFIG_SHELL' due to an Autoconf bug. Until the bug is fixed you can use this workaround: CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash `configure' Invocation ====================== `configure' recognizes the following options to control how it operates. `--help' `-h' Print a summary of the options to `configure', and exit. `--version' `-V' Print the version of Autoconf used to generate the `configure' script, and exit. `--cache-file=FILE' Enable the cache: use and save the results of the tests in FILE, traditionally `config.cache'. FILE defaults to `/dev/null' to disable caching. `--config-cache' `-C' Alias for `--cache-file=config.cache'. `--quiet' `--silent' `-q' Do not print messages saying which checks are being made. To suppress all normal output, redirect it to `/dev/null' (any error messages will still be shown). `--srcdir=DIR' Look for the package's source code in directory DIR. Usually `configure' can determine that directory automatically. `configure' also accepts some other, not widely useful, options. Run `configure --help' for more details. z80dasm-1.1.5/install-sh0000755000175000017500000003325613127235430011742 00000000000000#!/bin/sh # install - install a program, script, or datafile scriptversion=2011-01-19.21; # UTC # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Except as contained in this notice, the name of the X Consortium shall not # be used in advertising or otherwise to promote the sale, use or other deal- # ings in this Software without prior written authorization from the X Consor- # tium. # # # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent # `make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. nl=' ' IFS=" "" $nl" # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit=${DOITPROG-} if test -z "$doit"; then doit_exec=exec else doit_exec=$doit fi # Put in absolute file names if you don't have them in your path; # or use environment vars. chgrpprog=${CHGRPPROG-chgrp} chmodprog=${CHMODPROG-chmod} chownprog=${CHOWNPROG-chown} cmpprog=${CMPPROG-cmp} cpprog=${CPPROG-cp} mkdirprog=${MKDIRPROG-mkdir} mvprog=${MVPROG-mv} rmprog=${RMPROG-rm} stripprog=${STRIPPROG-strip} posix_glob='?' initialize_posix_glob=' test "$posix_glob" != "?" || { if (set -f) 2>/dev/null; then posix_glob= else posix_glob=: fi } ' posix_mkdir= # Desired mode of installed file. mode=0755 chgrpcmd= chmodcmd=$chmodprog chowncmd= mvcmd=$mvprog rmcmd="$rmprog -f" stripcmd= src= dst= dir_arg= dst_arg= copy_on_change=false no_target_directory= usage="\ Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE or: $0 [OPTION]... SRCFILES... DIRECTORY or: $0 [OPTION]... -t DIRECTORY SRCFILES... or: $0 [OPTION]... -d DIRECTORIES... In the 1st form, copy SRCFILE to DSTFILE. In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. In the 4th, create DIRECTORIES. Options: --help display this help and exit. --version display version info and exit. -c (ignored) -C install only if different (preserve the last data modification time) -d create directories instead of installing files. -g GROUP $chgrpprog installed files to GROUP. -m MODE $chmodprog installed files to MODE. -o USER $chownprog installed files to USER. -s $stripprog installed files. -t DIRECTORY install into DIRECTORY. -T report an error if DSTFILE is a directory. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG " while test $# -ne 0; do case $1 in -c) ;; -C) copy_on_change=true;; -d) dir_arg=true;; -g) chgrpcmd="$chgrpprog $2" shift;; --help) echo "$usage"; exit $?;; -m) mode=$2 case $mode in *' '* | *' '* | *' '* | *'*'* | *'?'* | *'['*) echo "$0: invalid mode: $mode" >&2 exit 1;; esac shift;; -o) chowncmd="$chownprog $2" shift;; -s) stripcmd=$stripprog;; -t) dst_arg=$2 # Protect names problematic for `test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac shift;; -T) no_target_directory=true;; --version) echo "$0 $scriptversion"; exit $?;; --) shift break;; -*) echo "$0: invalid option: $1" >&2 exit 1;; *) break;; esac shift done if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dst_arg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dst_arg" shift # fnord fi shift # arg dst_arg=$arg # Protect names problematic for `test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac done fi if test $# -eq 0; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 fi # It's OK to call `install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi if test -z "$dir_arg"; then do_exit='(exit $ret); exit $ret' trap "ret=129; $do_exit" 1 trap "ret=130; $do_exit" 2 trap "ret=141; $do_exit" 13 trap "ret=143; $do_exit" 15 # Set umask so as not to create temps with too-generous modes. # However, 'strip' requires both read and write access to temps. case $mode in # Optimize common cases. *644) cp_umask=133;; *755) cp_umask=22;; *[0-7]) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw='% 200' fi cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; *) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw=,u+rw fi cp_umask=$mode$u_plus_rw;; esac fi for src do # Protect names problematic for `test' and other utilities. case $src in -* | [=\(\)!]) src=./$src;; esac if test -n "$dir_arg"; then dst=$src dstdir=$dst test -d "$dstdir" dstdir_status=$? else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if test ! -f "$src" && test ! -d "$src"; then echo "$0: $src does not exist." >&2 exit 1 fi if test -z "$dst_arg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dst_arg # If destination is a directory, append the input filename; won't work # if double slashes aren't ignored. if test -d "$dst"; then if test -n "$no_target_directory"; then echo "$0: $dst_arg: Is a directory" >&2 exit 1 fi dstdir=$dst dst=$dstdir/`basename "$src"` dstdir_status=0 else # Prefer dirname, but fall back on a substitute if dirname fails. dstdir=` (dirname "$dst") 2>/dev/null || expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$dst" : 'X\(//\)[^/]' \| \ X"$dst" : 'X\(//\)$' \| \ X"$dst" : 'X\(/\)' \| . 2>/dev/null || echo X"$dst" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q' ` test -d "$dstdir" dstdir_status=$? fi fi obsolete_mkdir_used=false if test $dstdir_status != 0; then case $posix_mkdir in '') # Create intermediate dirs using mode 755 as modified by the umask. # This is like FreeBSD 'install' as of 1997-10-28. umask=`umask` case $stripcmd.$umask in # Optimize common cases. *[2367][2367]) mkdir_umask=$umask;; .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; *[0-7]) mkdir_umask=`expr $umask + 22 \ - $umask % 100 % 40 + $umask % 20 \ - $umask % 10 % 4 + $umask % 2 `;; *) mkdir_umask=$umask,go-w;; esac # With -d, create the new directory with the user-specified mode. # Otherwise, rely on $mkdir_umask. if test -n "$dir_arg"; then mkdir_mode=-m$mode else mkdir_mode= fi posix_mkdir=false case $umask in *[123567][0-7][0-7]) # POSIX mkdir -p sets u+wx bits regardless of umask, which # is incompatible with FreeBSD 'install' when (umask & 300) != 0. ;; *) tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 if (umask $mkdir_umask && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 then if test -z "$dir_arg" || { # Check for POSIX incompatibilities with -m. # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or # other-writeable bit of parent directory when it shouldn't. # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. ls_ld_tmpdir=`ls -ld "$tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/d" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null fi trap '' 0;; esac;; esac if $posix_mkdir && ( umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" ) then : else # The umask is ridiculous, or mkdir does not conform to POSIX, # or it failed possibly due to a race condition. Create the # directory the slow way, step by step, checking for races as we go. case $dstdir in /*) prefix='/';; [-=\(\)!]*) prefix='./';; *) prefix='';; esac eval "$initialize_posix_glob" oIFS=$IFS IFS=/ $posix_glob set -f set fnord $dstdir shift $posix_glob set +f IFS=$oIFS prefixes= for d do test X"$d" = X && continue prefix=$prefix$d if test -d "$prefix"; then prefixes= else if $posix_mkdir; then (umask=$mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break # Don't fail if two instances are running concurrently. test -d "$prefix" || exit 1 else case $prefix in *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; *) qprefix=$prefix;; esac prefixes="$prefixes '$qprefix'" fi fi prefix=$prefix/ done if test -n "$prefixes"; then # Don't fail if two instances are running concurrently. (umask $mkdir_umask && eval "\$doit_exec \$mkdirprog $prefixes") || test -d "$dstdir" || exit 1 obsolete_mkdir_used=true fi fi fi if test -n "$dir_arg"; then { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 else # Make a couple of temp file names in the proper directory. dsttmp=$dstdir/_inst.$$_ rmtmp=$dstdir/_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 # Copy the file name to the temp name. (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && # and set any options; do chmod last to preserve setuid bits. # # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $cpprog $src $dsttmp" command. # { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && # If -C, don't bother to copy if it wouldn't change the file. if $copy_on_change && old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && eval "$initialize_posix_glob" && $posix_glob set -f && set X $old && old=:$2:$4:$5:$6 && set X $new && new=:$2:$4:$5:$6 && $posix_glob set +f && test "$old" = "$new" && $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 then rm -f "$dsttmp" else # Rename the file to the real destination. $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || # The rename failed, perhaps because mv can't rename something else # to itself, or perhaps because mv is so ancient that it does not # support -f. { # Now remove or move aside any old file at destination location. # We try this two ways since rm can't unlink itself on some # systems and the destination file might be busy for other # reasons. In this case, the final cleanup might fail but the new # file should still install successfully. { test ! -f "$dst" || $doit $rmcmd -f "$dst" 2>/dev/null || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } } || { echo "$0: cannot unlink or rename $dst" >&2 (exit 1); exit 1 } } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dst" } fi || exit 1 trap '' 0 fi done # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: z80dasm-1.1.5/test/0002755000175000017500000000000013141302426010762 500000000000000z80dasm-1.1.5/test/undoc_dd_cb_00_f0.asm0000644000175000017500000000031413127235433014516 00000000000000; z80dasm 1.1.2 ; command line: ../src/z80dasm -vvv -g0 -l -o undoc_dd_cb_00_f0.asm undoc_dd_cb_00_f0.bin org 00000h defb 0ddh,0cbh,000h,0f0h ;set 6,(ix+000h) & ld b,(ix+000h) nop nop nop nop z80dasm-1.1.5/test/undoc_dd_cb_00_20.blocks0000644000175000017500000000000013127235432015116 00000000000000z80dasm-1.1.5/test/undoc_dd_cb_00_b0.blocks0000644000175000017500000000000013127235433015177 00000000000000z80dasm-1.1.5/test/undoc_dd_84.opts0000644000175000017500000000000013127235432013675 00000000000000z80dasm-1.1.5/test/undoc_dd_7d.opts0000644000175000017500000000000013127235432013754 00000000000000z80dasm-1.1.5/test/undocasm_fd_6b.opts0000644000175000017500000000000213127235436014462 00000000000000-uz80dasm-1.1.5/test/undoc_dd_cb_00_f0.bin0000644000175000017500000000001013127235433014477 00000000000000z80dasm-1.1.5/test/undocasm_dd_44.bin0000644000175000017500000000000613127235435014166 00000000000000Dz80dasm-1.1.5/test/undoc_fd_61.asm0000644000175000017500000000023613127235433013501 00000000000000; z80dasm 1.1.2 ; command line: ../src/z80dasm -vvv -g0 -l -o undoc_fd_61.asm undoc_fd_61.bin org 00000h defb 0fdh,061h ;ld iyh,c nop nop nop nop z80dasm-1.1.5/test/undocasm_dd_6a.opts0000644000175000017500000000000213127235436014457 00000000000000-uz80dasm-1.1.5/test/undoc_cb_30.asm0000644000175000017500000000023313127235431013463 00000000000000; z80dasm 1.1.2 ; command line: ../src/z80dasm -vvv -g0 -l -o undoc_cb_30.asm undoc_cb_30.bin org 00000h defb 0cbh,030h ;sli b nop nop nop nop z80dasm-1.1.5/test/undocasm_dd_62.blocks0000644000175000017500000000000013127235435014665 00000000000000z80dasm-1.1.5/test/undocasm_cb_36.blocks0000644000175000017500000000000013127235435014663 00000000000000z80dasm-1.1.5/test/labelsdd.blocks0000644000175000017500000000000012746655163013662 00000000000000z80dasm-1.1.5/test/undoc_fd_cb_00_d8.bin0000644000175000017500000000001013127235435014511 00000000000000z80dasm-1.1.5/test/undoc_fd_cb_00_e0.blocks0000644000175000017500000000000013127235435015206 00000000000000z80dasm-1.1.5/test/undoc_fd_44.opts0000644000175000017500000000000013127235433013674 00000000000000z80dasm-1.1.5/test/undoc_dd_bd.opts0000644000175000017500000000000013127235432014027 00000000000000z80dasm-1.1.5/test/undoc_fd_64.opts0000644000175000017500000000000013127235433013676 00000000000000z80dasm-1.1.5/test/undoc_fd_cb_00_c8.blocks0000644000175000017500000000000013127235435015214 00000000000000z80dasm-1.1.5/test/undoc_fd_68.opts0000644000175000017500000000000013127235433013702 00000000000000z80dasm-1.1.5/test/undoc_dd_6d.asm0000644000175000017500000000024013127235432013554 00000000000000; z80dasm 1.1.2 ; command line: ../src/z80dasm -vvv -g0 -l -o undoc_dd_6d.asm undoc_dd_6d.bin org 00000h defb 0ddh,06dh ;ld ixl,ixl nop nop nop nop z80dasm-1.1.5/test/undoc_dd_65.bin0000644000175000017500000000000613127235431013464 00000000000000ez80dasm-1.1.5/test/undoc_fd_cb_00_e0.asm0000644000175000017500000000031413127235435014521 00000000000000; z80dasm 1.1.2 ; command line: ../src/z80dasm -vvv -g0 -l -o undoc_fd_cb_00_e0.asm undoc_fd_cb_00_e0.bin org 00000h defb 0fdh,0cbh,000h,0e0h ;set 4,(iy+000h) & ld b,(iy+000h) nop nop nop nop z80dasm-1.1.5/test/undoc_fd_cb_00_20.opts0000644000175000017500000000000013127235434014632 00000000000000z80dasm-1.1.5/test/undoc_fd_a5.asm0000644000175000017500000000023513127235434013560 00000000000000; z80dasm 1.1.2 ; command line: ../src/z80dasm -vvv -g0 -l -o undoc_fd_a5.asm undoc_fd_a5.bin org 00000h defb 0fdh,0a5h ;and iyl nop nop nop nop z80dasm-1.1.5/test/undoc_fd_cb_00_03.asm0000644000175000017500000000031213127235434014434 00000000000000; z80dasm 1.1.2 ; command line: ../src/z80dasm -vvv -g0 -l -o undoc_fd_cb_00_03.asm undoc_fd_cb_00_03.bin org 00000h defb 0fdh,0cbh,000h,003h ;rlc (iy+000h) & ld e,(iy+000h) nop nop nop nop z80dasm-1.1.5/test/undoc_cb_37.bin0000644000175000017500000000000613127235431013460 000000000000007z80dasm-1.1.5/test/undocasm_dd_62.bin0000644000175000017500000000000613127235435014166 00000000000000bz80dasm-1.1.5/test/ed_at_end_1.bin0000644000175000017500000000000513127235430013513 00000000000000Mz80dasm-1.1.5/test/undoc_dd_6b.opts0000644000175000017500000000000013127235431013750 00000000000000z80dasm-1.1.5/test/undoc_fd_7d.blocks0000644000175000017500000000000013127235434014250 00000000000000z80dasm-1.1.5/test/undoc_dd_5c.asm0000644000175000017500000000023613127235431013556 00000000000000; z80dasm 1.1.2 ; command line: ../src/z80dasm -vvv -g0 -l -o undoc_dd_5c.asm undoc_dd_5c.bin org 00000h defb 0ddh,05ch ;ld e,ixh nop nop nop nop z80dasm-1.1.5/test/undoc_fd_4d.opts0000644000175000017500000000000013127235433013754 00000000000000z80dasm-1.1.5/test/undocasm_fd_55.asm0000644000175000017500000000021613127235436014206 00000000000000; z80dasm 1.1.2 ; command line: ../src/z80dasm -vvv -g0 -l -o undoc_fd_55.asm undoc_fd_55.bin org 00000h ld d,iyl nop nop nop nop z80dasm-1.1.5/test/undoc_dd_6b.blocks0000644000175000017500000000000013127235431014240 00000000000000z80dasm-1.1.5/test/undoc_fd_8d.blocks0000644000175000017500000000000013127235434014251 00000000000000z80dasm-1.1.5/test/undoc_dd_a5.asm0000644000175000017500000000023513127235432013554 00000000000000; z80dasm 1.1.2 ; command line: ../src/z80dasm -vvv -g0 -l -o undoc_dd_a5.asm undoc_dd_a5.bin org 00000h defb 0ddh,0a5h ;and ixl nop nop nop nop z80dasm-1.1.5/test/undoc_dd_5c.blocks0000644000175000017500000000000013127235431014240 00000000000000z80dasm-1.1.5/test/undocasm_dd_6a.blocks0000644000175000017500000000000013127235436014745 00000000000000z80dasm-1.1.5/test/undoc_dd_cb_00_88.bin0000644000175000017500000000001013127235432014430 00000000000000z80dasm-1.1.5/test/undoc_dd_bd.bin0000644000175000017500000000000613127235432013620 00000000000000ݽz80dasm-1.1.5/test/undocasm_dd_6a.bin0000644000175000017500000000000613127235436014246 00000000000000jz80dasm-1.1.5/test/undoc_dd_bc.bin0000644000175000017500000000000613127235432013617 00000000000000ݼz80dasm-1.1.5/test/undoc_dd_cb_00_c0.bin0000644000175000017500000000001013127235433014474 00000000000000z80dasm-1.1.5/test/undocasm_dd_6d.opts0000644000175000017500000000000213127235436014462 00000000000000-uz80dasm-1.1.5/test/undocasm_fd_4d.blocks0000644000175000017500000000000013127235436014750 00000000000000z80dasm-1.1.5/test/undoc_dd_4c.asm0000644000175000017500000000023613127235431013555 00000000000000; z80dasm 1.1.2 ; command line: ../src/z80dasm -vvv -g0 -l -o undoc_dd_4c.asm undoc_dd_4c.bin org 00000h defb 0ddh,04ch ;ld c,ixh nop nop nop nop z80dasm-1.1.5/test/undoc_dd_64.asm0000644000175000017500000000024013127235431013473 00000000000000; z80dasm 1.1.2 ; command line: ../src/z80dasm -vvv -g0 -l -o undoc_dd_64.asm undoc_dd_64.bin org 00000h defb 0ddh,064h ;ld ixh,ixh nop nop nop nop z80dasm-1.1.5/test/undoc_dd_cb_00_e8.asm0000644000175000017500000000031413127235433014525 00000000000000; z80dasm 1.1.2 ; command line: ../src/z80dasm -vvv -g0 -l -o undoc_dd_cb_00_e8.asm undoc_dd_cb_00_e8.bin org 00000h defb 0ddh,0cbh,000h,0e8h ;set 5,(ix+000h) & ld b,(ix+000h) nop nop nop nop z80dasm-1.1.5/test/undoc_fd_b4.blocks0000644000175000017500000000000013127235434014243 00000000000000z80dasm-1.1.5/test/undoc_dd_cb_00_05.opts0000644000175000017500000000000013127235432014631 00000000000000z80dasm-1.1.5/test/undoc_fd_cb_00_03.bin0000644000175000017500000000001013127235434014417 00000000000000z80dasm-1.1.5/test/basicblocks.asm0000644000175000017500000023657413127235430013706 00000000000000; z80dasm 1.1.4 ; command line: ../src/z80dasm -g0 -l -at -o basicblocks.generated.asm -b ./basicblocks.blocks ./basicblocks.bin org 00000h push de ;0000 d5 . dec d ;0001 15 . ld (de),a ;0002 12 . ld h,a ;0003 67 g ld (hl),e ;0004 73 s ld c,d ;0005 4a J ld bc,0567ch ;0006 01 7c 56 . | V add hl,hl ;0009 29 ) ld (bc),a ;000a 02 . ld a,e ;000b 7b { ret ;000c c9 . add a,h ;000d 84 . or e ;000e b3 . xor c ;000f a9 . push hl ;0010 e5 . ld (hl),a ;0011 77 w ld d,c ;0012 51 Q inc d ;0013 14 . ld (bc),a ;0014 02 . sub 090h ;0015 d6 90 . . ld e,06dh ;0017 1e 6d . m inc d ;0019 14 . defb 0ddh,0feh,0c8h ;illegal sequence ;001a dd fe c8 . . . jp (hl) ;001d e9 . adc a,c ;001e 89 . call z,0ffaeh ;001f cc ae ff . . . ld sp,hl ;0022 f9 . and l ;0023 a5 . dec d ;0024 15 . rst 0 ;0025 c7 . inc sp ;0026 33 3 ret p ;0027 f0 . dec c ;0028 0d . ld h,d ;0029 62 b ret m ;002a f8 . ld hl,(09de8h) ;002b 2a e8 9d * . . ld e,h ;002e 5c \ ld e,d ;002f 5a Z ret m ;0030 f8 . pop de ;0031 d1 . and e ;0032 a3 . ld (bc),a ;0033 02 . ld (hl),a ;0034 77 w rst 10h ;0035 d7 . call p,0edd8h ;0036 f4 d8 ed . . . add a,d ;0039 82 . ld a,e ;003a 7b { adc a,a ;003b 8f . ld b,b ;003c 40 @ jr c,$-68 ;003d 38 ba 8 . ld c,06bh ;003f 0e 6b . k ld (bc),a ;0041 02 . push af ;0042 f5 . jr nz,l00a0h ;0043 20 5b [ dec c ;0045 0d . ld c,d ;0046 4a J and e ;0047 a3 . ld b,a ;0048 47 G ret nz ;0049 c0 . otdr ;004a ed bb . . ld a,(0f244h) ;004c 3a 44 f2 : D . ld e,l ;004f 5d ] in a,(0dch) ;0050 db dc . . nop ;0052 00 . dec a ;0053 3d = call p,0c3cbh ;0054 f4 cb c3 . . . ld e,(hl) ;0057 5e ^ ld e,b ;0058 58 X ld (hl),d ;0059 72 r ld h,h ;005a 64 d or d ;005b b2 . push bc ;005c c5 . sbc a,h ;005d 9c . ld b,c ;005e 41 A ld b,l ;005f 45 E rst 38h ;0060 ff . rrca ;0061 0f . rst 30h ;0062 f7 . ret nc ;0063 d0 . pop bc ;0064 c1 . ld b,b ;0065 40 @ ex af,af' ;0066 08 . in a,(072h) ;0067 db 72 . r in a,(021h) ;0069 db 21 . ! l006bh: push de ;006b d5 . ret z ;006c c8 . rst 20h ;006d e7 . dec l ;006e 2d - ld l,e ;006f 6b k jr z,$+115 ;0070 28 71 ( q ld l,d ;0072 6a j add a,05fh ;0073 c6 5f . _ sbc a,d ;0075 9a . xor a ;0076 af . sbc a,l ;0077 9d . ld l,0d6h ;0078 2e d6 . . jp (hl) ;007a e9 . ld l,0e4h ;007b 2e e4 . . ld d,a ;007d 57 W ret p ;007e f0 . ld e,04fh ;007f 1e 4f . O ld c,e ;0081 4b K ld h,e ;0082 63 c adc a,l ;0083 8d . l0084h: sbc a,e ;0084 9b . ld d,(hl) ;0085 56 V dec c ;0086 0d . ld d,e ;0087 53 S ld sp,hl ;0088 f9 . ld sp,hl ;0089 f9 . jr z,l006bh ;008a 28 df ( . inc hl ;008c 23 # ld d,d ;008d 52 R jp 0f49eh ;008e c3 9e f4 . . . or l ;0091 b5 . adc a,08dh ;0092 ce 8d . . rst 10h ;0094 d7 . or l ;0095 b5 . xor a ;0096 af . cp c ;0097 b9 . ret ;0098 c9 . or 02bh ;0099 f6 2b . + jp nc,0e3c2h ;009b d2 c2 e3 . . . push af ;009e f5 . dec c ;009f 0d . l00a0h: adc a,0e1h ;00a0 ce e1 . . ld b,(hl) ;00a2 46 F ld (hl),b ;00a3 70 p in a,(0adh) ;00a4 db ad . . dec c ;00a6 0d . jp m,0cab3h ;00a7 fa b3 ca . . . cp e ;00aa bb . l00abh: cp d ;00ab ba . dec d ;00ac 15 . add hl,hl ;00ad 29 ) sbc a,h ;00ae 9c . jp c,04a62h ;00af da 62 4a . b J ld d,a ;00b2 57 W ld h,d ;00b3 62 b and e ;00b4 a3 . push hl ;00b5 e5 . cp e ;00b6 bb . cp (hl) ;00b7 be . sbc a,l ;00b8 9d . dec a ;00b9 3d = add a,h ;00ba 84 . inc de ;00bb 13 . dec bc ;00bc 0b . push hl ;00bd e5 . cp a ;00be bf . ld bc,0c473h ;00bf 01 73 c4 . s . add a,d ;00c2 82 . ld a,b ;00c3 78 x ld e,(hl) ;00c4 5e ^ djnz $-111 ;00c5 10 8f . . or (hl) ;00c7 b6 . jr l00abh ;00c8 18 e1 . . ld (hl),l ;00ca 75 u inc bc ;00cb 03 . ret c ;00cc d8 . xor c ;00cd a9 . inc e ;00ce 1c . sub b ;00cf 90 . ld sp,0b43ah ;00d0 31 3a b4 1 : . inc de ;00d3 13 . ld h,c ;00d4 61 a or a ;00d5 b7 . ld h,a ;00d6 67 g and (hl) ;00d7 a6 . dec de ;00d8 1b . or l ;00d9 b5 . bit 6,(hl) ;00da cb 76 . v cp c ;00dc b9 . dec e ;00dd 1d . ld d,(hl) ;00de 56 V and h ;00df a4 . ret z ;00e0 c8 . or h ;00e1 b4 . jr nc,l014ch ;00e2 30 68 0 h inc b ;00e4 04 . ld a,(de) ;00e5 1a . ld h,0aeh ;00e6 26 ae & . ld (hl),c ;00e8 71 q jp pe,0c653h ;00e9 ea 53 c6 . S . ld (hl),a ;00ec 77 w or l ;00ed b5 . ld e,a ;00ee 5f _ rrca ;00ef 0f . xor 0b7h ;00f0 ee b7 . . jp 03d22h ;00f2 c3 22 3d . " = adc a,h ;00f5 8c . jr nz,l0084h ;00f6 20 8c . sub b ;00f8 90 . jp po,09575h ;00f9 e2 75 95 . u . ccf ;00fc 3f ? ld c,0f3h ;00fd 0e f3 . . xor e ;00ff ab . ; BLOCK 'test_bytedata' (start 0x0100 end 0x0200) test_bytedata_start: defb 078h ;0100 78 x defb 02ch ;0101 2c , defb 058h ;0102 58 X defb 0b3h ;0103 b3 . defb 00ch ;0104 0c . defb 087h ;0105 87 . defb 07dh ;0106 7d } defb 03bh ;0107 3b ; defb 0fdh ;0108 fd . defb 0fah ;0109 fa . defb 0bdh ;010a bd . defb 047h ;010b 47 G defb 028h ;010c 28 ( defb 0cbh ;010d cb . defb 00ch ;010e 0c . defb 0e3h ;010f e3 . defb 0bfh ;0110 bf . defb 04eh ;0111 4e N defb 05ah ;0112 5a Z defb 031h ;0113 31 1 defb 01fh ;0114 1f . defb 00ch ;0115 0c . defb 055h ;0116 55 U defb 0f4h ;0117 f4 . defb 090h ;0118 90 . defb 063h ;0119 63 c defb 02ch ;011a 2c , defb 0e5h ;011b e5 . defb 05bh ;011c 5b [ defb 077h ;011d 77 w defb 017h ;011e 17 . defb 0e5h ;011f e5 . defb 0dch ;0120 dc . defb 00ah ;0121 0a . defb 0b1h ;0122 b1 . defb 0e8h ;0123 e8 . defb 0f2h ;0124 f2 . defb 0bbh ;0125 bb . defb 0c5h ;0126 c5 . defb 0bah ;0127 ba . defb 025h ;0128 25 % defb 0bah ;0129 ba . defb 05dh ;012a 5d ] defb 04ch ;012b 4c L defb 021h ;012c 21 ! defb 081h ;012d 81 . defb 000h ;012e 00 . defb 060h ;012f 60 ` defb 04fh ;0130 4f O defb 01ah ;0131 1a . defb 0a7h ;0132 a7 . defb 0e9h ;0133 e9 . defb 0afh ;0134 af . defb 082h ;0135 82 . defb 0a2h ;0136 a2 . l0137h: defb 065h ;0137 65 e defb 08bh ;0138 8b . defb 0ebh ;0139 eb . defb 020h ;013a 20 defb 0d9h ;013b d9 . defb 03fh ;013c 3f ? defb 0bfh ;013d bf . defb 0eeh ;013e ee . defb 062h ;013f 62 b defb 063h ;0140 63 c defb 0ffh ;0141 ff . defb 0d7h ;0142 d7 . defb 071h ;0143 71 q defb 029h ;0144 29 ) defb 0bch ;0145 bc . defb 040h ;0146 40 @ defb 03bh ;0147 3b ; defb 047h ;0148 47 G defb 0b2h ;0149 b2 . defb 0d4h ;014a d4 . defb 060h ;014b 60 ` l014ch: defb 02fh ;014c 2f / defb 0d5h ;014d d5 . defb 074h ;014e 74 t defb 010h ;014f 10 . defb 06bh ;0150 6b k defb 074h ;0151 74 t defb 020h ;0152 20 defb 08dh ;0153 8d . defb 0f1h ;0154 f1 . defb 035h ;0155 35 5 defb 0b0h ;0156 b0 . defb 0d1h ;0157 d1 . defb 094h ;0158 94 . defb 01ch ;0159 1c . defb 028h ;015a 28 ( defb 07eh ;015b 7e ~ defb 079h ;015c 79 y defb 0abh ;015d ab . defb 019h ;015e 19 . defb 015h ;015f 15 . defb 058h ;0160 58 X defb 002h ;0161 02 . defb 016h ;0162 16 . defb 060h ;0163 60 ` defb 044h ;0164 44 D defb 003h ;0165 03 . defb 0efh ;0166 ef . defb 0a4h ;0167 a4 . defb 09fh ;0168 9f . defb 0cbh ;0169 cb . defb 039h ;016a 39 9 defb 06ch ;016b 6c l defb 0b5h ;016c b5 . defb 0bdh ;016d bd . defb 02fh ;016e 2f / defb 09fh ;016f 9f . defb 02ah ;0170 2a * defb 026h ;0171 26 & defb 06ah ;0172 6a j defb 03ah ;0173 3a : defb 01eh ;0174 1e . defb 08eh ;0175 8e . defb 01bh ;0176 1b . defb 0ach ;0177 ac . defb 03eh ;0178 3e > defb 013h ;0179 13 . defb 069h ;017a 69 i sub_017bh: defb 0c1h ;017b c1 . defb 0e1h ;017c e1 . defb 0e4h ;017d e4 . defb 0a6h ;017e a6 . defb 0b2h ;017f b2 . defb 025h ;0180 25 % defb 019h ;0181 19 . defb 062h ;0182 62 b defb 0d8h ;0183 d8 . defb 0eah ;0184 ea . defb 070h ;0185 70 p defb 02fh ;0186 2f / defb 087h ;0187 87 . defb 0fah ;0188 fa . defb 0e1h ;0189 e1 . defb 095h ;018a 95 . defb 0cah ;018b ca . defb 083h ;018c 83 . defb 02bh ;018d 2b + defb 087h ;018e 87 . defb 084h ;018f 84 . defb 063h ;0190 63 c defb 063h ;0191 63 c defb 0dch ;0192 dc . defb 08fh ;0193 8f . defb 0fah ;0194 fa . defb 01ah ;0195 1a . defb 0f2h ;0196 f2 . defb 046h ;0197 46 F defb 03eh ;0198 3e > defb 024h ;0199 24 $ defb 005h ;019a 05 . defb 058h ;019b 58 X defb 01fh ;019c 1f . defb 0c5h ;019d c5 . defb 0f8h ;019e f8 . defb 0a7h ;019f a7 . defb 01dh ;01a0 1d . defb 089h ;01a1 89 . defb 0f9h ;01a2 f9 . defb 0b1h ;01a3 b1 . defb 067h ;01a4 67 g defb 076h ;01a5 76 v defb 0cbh ;01a6 cb . defb 06ah ;01a7 6a j defb 069h ;01a8 69 i defb 00ah ;01a9 0a . defb 021h ;01aa 21 ! defb 0abh ;01ab ab . defb 074h ;01ac 74 t defb 05bh ;01ad 5b [ defb 025h ;01ae 25 % defb 0dfh ;01af df . defb 074h ;01b0 74 t defb 0c5h ;01b1 c5 . defb 0bah ;01b2 ba . defb 0ach ;01b3 ac . defb 01fh ;01b4 1f . defb 006h ;01b5 06 . defb 034h ;01b6 34 4 defb 017h ;01b7 17 . defb 0d0h ;01b8 d0 . defb 056h ;01b9 56 V defb 09eh ;01ba 9e . defb 011h ;01bb 11 . defb 0c3h ;01bc c3 . defb 074h ;01bd 74 t defb 07fh ;01be 7f  defb 026h ;01bf 26 & defb 0b3h ;01c0 b3 . defb 042h ;01c1 42 B defb 0bdh ;01c2 bd . defb 099h ;01c3 99 . defb 056h ;01c4 56 V defb 075h ;01c5 75 u defb 037h ;01c6 37 7 defb 0dfh ;01c7 df . defb 0bdh ;01c8 bd . defb 0d0h ;01c9 d0 . defb 0e4h ;01ca e4 . defb 023h ;01cb 23 # defb 03dh ;01cc 3d = defb 0feh ;01cd fe . defb 014h ;01ce 14 . defb 042h ;01cf 42 B defb 0afh ;01d0 af . defb 073h ;01d1 73 s defb 0c4h ;01d2 c4 . defb 0f3h ;01d3 f3 . defb 03eh ;01d4 3e > defb 091h ;01d5 91 . defb 086h ;01d6 86 . defb 0bch ;01d7 bc . defb 0cbh ;01d8 cb . defb 035h ;01d9 35 5 defb 0deh ;01da de . defb 075h ;01db 75 u defb 067h ;01dc 67 g defb 05eh ;01dd 5e ^ defb 0bdh ;01de bd . defb 0e4h ;01df e4 . defb 0f3h ;01e0 f3 . defb 0beh ;01e1 be . defb 01bh ;01e2 1b . defb 05fh ;01e3 5f _ defb 063h ;01e4 63 c defb 036h ;01e5 36 6 defb 0eah ;01e6 ea . defb 030h ;01e7 30 0 defb 0cfh ;01e8 cf . defb 046h ;01e9 46 F defb 02dh ;01ea 2d - defb 090h ;01eb 90 . defb 065h ;01ec 65 e defb 0dch ;01ed dc . defb 099h ;01ee 99 . defb 09fh ;01ef 9f . defb 0a7h ;01f0 a7 . defb 00ch ;01f1 0c . defb 094h ;01f2 94 . defb 009h ;01f3 09 . defb 0bbh ;01f4 bb . defb 0a9h ;01f5 a9 . defb 036h ;01f6 36 6 defb 064h ;01f7 64 d defb 007h ;01f8 07 . defb 017h ;01f9 17 . defb 086h ;01fa 86 . defb 0e1h ;01fb e1 . defb 0c8h ;01fc c8 . defb 09fh ;01fd 9f . defb 066h ;01fe 66 f defb 0a4h ;01ff a4 . test_bytedata_end: ; BLOCK 'test_worddata' (start 0x0200 end 0x0300) test_worddata_start: defw 0d75eh ;0200 5e d7 ^ . defw 0ea28h ;0202 28 ea ( . defw 02645h ;0204 45 26 E & defw 0923eh ;0206 3e 92 > . defw 00c5ah ;0208 5a 0c Z . defw 0ebc6h ;020a c6 eb . . defw 0e318h ;020c 18 e3 . . defw 03cefh ;020e ef 3c . < defw 0903fh ;0210 3f 90 ? . defw 0b9c7h ;0212 c7 b9 . . defw 01347h ;0214 47 13 G . defw 00e84h ;0216 84 0e . . defw 08fdeh ;0218 de 8f . . defw 01a6dh ;021a 6d 1a m . defw 0e96dh ;021c 6d e9 m . defw 0d182h ;021e 82 d1 . . defw 0d017h ;0220 17 d0 . . defw 09a5ch ;0222 5c 9a \ . defw 02a89h ;0224 89 2a . * defw 096e6h ;0226 e6 96 . . defw 05b16h ;0228 16 5b . [ defw 00606h ;022a 06 06 . . defw 0d361h ;022c 61 d3 a . defw 08e00h ;022e 00 8e . . defw 0d1d9h ;0230 d9 d1 . . defw 0e839h ;0232 39 e8 9 . defw 093adh ;0234 ad 93 . . defw 06113h ;0236 13 61 . a defw 08f80h ;0238 80 8f . . defw 00b74h ;023a 74 0b t . defw 0c69eh ;023c 9e c6 . . defw 09342h ;023e 42 93 B . defw 067d7h ;0240 d7 67 . g defw 05953h ;0242 53 59 S Y defw 05299h ;0244 99 52 . R defw 02b37h ;0246 37 2b 7 + defw 0c5bah ;0248 ba c5 . . defw 0dd73h ;024a 73 dd s . defw 00416h ;024c 16 04 . . defw 09cfdh ;024e fd 9c . . defw 0dd43h ;0250 43 dd C . defw 0c606h ;0252 06 c6 . . defw 0ad38h ;0254 38 ad 8 . defw 03b94h ;0256 94 3b . ; defw 074fbh ;0258 fb 74 . t defw 0c433h ;025a 33 c4 3 . defw 0baf8h ;025c f8 ba . . defw 08ef2h ;025e f2 8e . . defw 01066h ;0260 66 10 f . defw 07c19h ;0262 19 7c . | defw 0140fh ;0264 0f 14 . . defw 06a17h ;0266 17 6a . j defw 0963bh ;0268 3b 96 ; . defw 0e1adh ;026a ad e1 . . defw 083d2h ;026c d2 83 . . defw 01a1fh ;026e 1f 1a . . defw 0e07ch ;0270 7c e0 | . defw 00a34h ;0272 34 0a 4 . defw 0a5dah ;0274 da a5 . . defw 0af58h ;0276 58 af X . defw 09574h ;0278 74 95 t . defw 0ede6h ;027a e6 ed . . defw 0bb69h ;027c 69 bb i . defw 0816dh ;027e 6d 81 m . defw 08d9bh ;0280 9b 8d . . defw 0ec48h ;0282 48 ec H . defw 0d651h ;0284 51 d6 Q . defw 050cah ;0286 ca 50 . P defw 04984h ;0288 84 49 . I defw 0fad6h ;028a d6 fa . . defw 0d945h ;028c 45 d9 E . defw 08f09h ;028e 09 8f . . defw 0be3ah ;0290 3a be : . defw 03f1ch ;0292 1c 3f . ? defw 0b110h ;0294 10 b1 . . defw 04174h ;0296 74 41 t A defw 06be1h ;0298 e1 6b . k defw 09960h ;029a 60 99 ` . defw 07b72h ;029c 72 7b r { defw 03627h ;029e 27 36 ' 6 defw 04be2h ;02a0 e2 4b . K defw 0e968h ;02a2 68 e9 h . defw 0e3ddh ;02a4 dd e3 . . defw 062ach ;02a6 ac 62 . b defw 03b2fh ;02a8 2f 3b / ; defw 0dee1h ;02aa e1 de . . defw 0935eh ;02ac 5e 93 ^ . defw 04731h ;02ae 31 47 1 G defw 0c115h ;02b0 15 c1 . . defw 013a7h ;02b2 a7 13 . . defw 06d75h ;02b4 75 6d u m defw 0b882h ;02b6 82 b8 . . defw 0fa22h ;02b8 22 fa " . defw 050bfh ;02ba bf 50 . P defw 084a7h ;02bc a7 84 . . defw 041dfh ;02be df 41 . A defw 05b34h ;02c0 34 5b 4 [ defw 0d62fh ;02c2 2f d6 / . defw 061adh ;02c4 ad 61 . a defw 02f35h ;02c6 35 2f 5 / defw 062f3h ;02c8 f3 62 . b defw 00a5ah ;02ca 5a 0a Z . defw 0b0a0h ;02cc a0 b0 . . defw 00d86h ;02ce 86 0d . . defw 0f6d4h ;02d0 d4 f6 . . defw 0a95ch ;02d2 5c a9 \ . defw 04323h ;02d4 23 43 # C defw 0f606h ;02d6 06 f6 . . defw 0b308h ;02d8 08 b3 . . defw 08d9dh ;02da 9d 8d . . defw 0e864h ;02dc 64 e8 d . defw 0e8d7h ;02de d7 e8 . . defw 0f8beh ;02e0 be f8 . . defw 0aefbh ;02e2 fb ae . . defw 07fedh ;02e4 ed 7f .  defw 0dc31h ;02e6 31 dc 1 . defw 0097ch ;02e8 7c 09 | . defw 0676dh ;02ea 6d 67 m g defw 04d24h ;02ec 24 4d $ M defw 0ad8ch ;02ee 8c ad . . defw 0d89eh ;02f0 9e d8 . . defw 0159ah ;02f2 9a 15 . . defw 0555ah ;02f4 5a 55 Z U defw 09c80h ;02f6 80 9c . . defw 0b721h ;02f8 21 b7 ! . defw 037f1h ;02fa f1 37 . 7 defw 0226bh ;02fc 6b 22 k " defw 04972h ;02fe 72 49 r I test_worddata_end: ; BLOCK 'test_code' (start 0x0300 end 0x0500) test_code_start: djnz l0306h ;0300 10 04 . . ld a,h ;0302 7c | inc bc ;0303 03 . and l ;0304 a5 . inc b ;0305 04 . l0306h: ld e,004h ;0306 1e 04 . . nop ;0308 00 . ld (bc),a ;0309 02 . nop ;030a 00 . inc bc ;030b 03 . nop ;030c 00 . ld bc,test_pointers_end ;030d 01 10 04 . . . ld h,c ;0310 61 a dec sp ;0311 3b ; in a,(0dbh) ;0312 db db . . cp 013h ;0314 fe 13 . . dec hl ;0316 2b + rst 10h ;0317 d7 . ret z ;0318 c8 . sbc a,(hl) ;0319 9e . inc c ;031a 0c . ld (hl),b ;031b 70 p adc a,a ;031c 8f . sbc a,h ;031d 9c . ld h,l ;031e 65 e sub 01dh ;031f d6 1d . . jp pe,l0ce7h ;0321 ea e7 0c . . . inc de ;0324 13 . ld (hl),e ;0325 73 s ret pe ;0326 e8 . ld d,b ;0327 50 P xor b ;0328 a8 . adc a,c ;0329 89 . ld e,c ;032a 59 Y adc a,a ;032b 8f . ret nz ;032c c0 . ld c,e ;032d 4b K rst 0 ;032e c7 . cp e ;032f bb . inc d ;0330 14 . ld d,h ;0331 54 T cpl ;0332 2f / xor l ;0333 ad . xor e ;0334 ab . add a,h ;0335 84 . cp (hl) ;0336 be . ld hl,(0d8f3h) ;0337 2a f3 d8 * . . ld a,(bc) ;033a 0a . xor c ;033b a9 . ld a,h ;033c 7c | ld b,d ;033d 42 B ld l,l ;033e 6d m or d ;033f b2 . ld d,h ;0340 54 T ld e,d ;0341 5a Z ld a,a ;0342 7f  jp nz,0442bh ;0343 c2 2b 44 . + D ex af,af' ;0346 08 . rst 10h ;0347 d7 . or d ;0348 b2 . add a,e ;0349 83 . jp pe,08f86h ;034a ea 86 8f . . . ld d,e ;034d 53 S ld h,c ;034e 61 a and c ;034f a1 . inc b ;0350 04 . jp po,058dbh ;0351 e2 db 58 . . X ld l,l ;0354 6d m pop hl ;0355 e1 . sbc a,(hl) ;0356 9e . call z,09ea5h ;0357 cc a5 9e . . . and h ;035a a4 . ld a,(de) ;035b 1a . ld e,h ;035c 5c \ ld (hl),h ;035d 74 t and b ;035e a0 . ld (hl),d ;035f 72 r xor a ;0360 af . inc a ;0361 3c < ld e,d ;0362 5a Z adc a,l ;0363 8d . adc a,006h ;0364 ce 06 . . or 00dh ;0366 f6 0d . . adc a,a ;0368 8f . sbc a,h ;0369 9c . ld a,(de) ;036a 1a . ld a,(0a2a6h) ;036b 3a a6 a2 : . . ld a,a ;036e 7f  inc hl ;036f 23 # and l ;0370 a5 . inc de ;0371 13 . rst 0 ;0372 c7 . jp 0b3d2h ;0373 c3 d2 b3 . . . sub c ;0376 91 . ld d,d ;0377 52 R ld b,0f1h ;0378 06 f1 . . ld hl,(0d753h) ;037a 2a 53 d7 * S . ld e,c ;037d 59 Y jp (hl) ;037e e9 . djnz l03f8h ;037f 10 77 . w xor d ;0381 aa . add a,a ;0382 87 . cp (hl) ;0383 be . add a,e ;0384 83 . pop bc ;0385 c1 . call nz,0bce0h ;0386 c4 e0 bc . . . exx ;0389 d9 . ld d,l ;038a 55 U adc a,d ;038b 8a . add a,c ;038c 81 . ld (hl),e ;038d 73 s and l ;038e a5 . ei ;038f fb . ld c,d ;0390 4a J call nc,01d57h ;0391 d4 57 1d . W . ld e,025h ;0394 1e 25 . % ret po ;0396 e0 . djnz $-5 ;0397 10 f9 . . rst 38h ;0399 ff . ld c,d ;039a 4a J inc bc ;039b 03 . dec b ;039c 05 . sub c ;039d 91 . ld a,094h ;039e 3e 94 > . ld b,b ;03a0 40 @ rst 38h ;03a1 ff . ld d,d ;03a2 52 R adc a,087h ;03a3 ce 87 . . dec bc ;03a5 0b . ld d,e ;03a6 53 S push bc ;03a7 c5 . jp 09c23h ;03a8 c3 23 9c . # . xor (hl) ;03ab ae . ret pe ;03ac e8 . dec hl ;03ad 2b + sbc a,(hl) ;03ae 9e . defb 0edh;next byte illegal after ed ;03af ed . nop ;03b0 00 . ld c,l ;03b1 4d M call m,09e8ch ;03b2 fc 8c 9e . . . sub l ;03b5 95 . inc e ;03b6 1c . add hl,de ;03b7 19 . out (0ebh),a ;03b8 d3 eb . . jp po,0e63ch ;03ba e2 3c e6 . < . ld a,a ;03bd 7f  ld l,d ;03be 6a j sbc a,a ;03bf 9f . ld l,e ;03c0 6b k dec e ;03c1 1d . sbc a,h ;03c2 9c . and a ;03c3 a7 . or h ;03c4 b4 . ld a,(hl) ;03c5 7e ~ xor l ;03c6 ad . ld (hl),e ;03c7 73 s dec sp ;03c8 3b ; ld (hl),h ;03c9 74 t xor e ;03ca ab . ld (hl),d ;03cb 72 r adc a,d ;03cc 8a . dec d ;03cd 15 . ld (hl),c ;03ce 71 q jp p,0dc1bh ;03cf f2 1b dc . . . ld (hl),a ;03d2 77 w call 03db5h ;03d3 cd b5 3d . . = ld b,h ;03d6 44 D ld e,02bh ;03d7 1e 2b . + cp a ;03d9 bf . inc (hl) ;03da 34 4 or a ;03db b7 . jp po,0dc47h ;03dc e2 47 dc . G . ld (de),a ;03df 12 . xor d ;03e0 aa . adc a,a ;03e1 8f . rst 28h ;03e2 ef . jp z,0778bh ;03e3 ca 8b 77 . . w ld h,a ;03e6 67 g ret c ;03e7 d8 . pop hl ;03e8 e1 . jr nz,l043bh ;03e9 20 50 P add a,b ;03eb 80 . ret po ;03ec e0 . ld h,c ;03ed 61 a sbc a,09fh ;03ee de 9f . . ld e,0c7h ;03f0 1e c7 . . inc c ;03f2 0c . inc a ;03f3 3c < call pe,0d40dh ;03f4 ec 0d d4 . . . and d ;03f7 a2 . l03f8h: in a,(0f7h) ;03f8 db f7 . . pop hl ;03fa e1 . adc a,a ;03fb 8f . ld c,e ;03fc 4b K ld c,h ;03fd 4c L cp 081h ;03fe fe 81 . . ; BLOCK 'test_pointers' (start 0x0400 end 0x0410) test_pointers_start: defw 02439h ;0400 39 24 9 $ defw 096f4h ;0402 f4 96 . . defw 066bdh ;0404 bd 66 . f defw 0f38ah ;0406 8a f3 . . defw 080b2h ;0408 b2 80 . . defw 0c52eh ;040a 2e c5 . . defw 0c791h ;040c 91 c7 . . defw 0ffe7h ;040e e7 ff . . test_pointers_end: call z,05a78h ;0410 cc 78 5a . x Z jp p,035f6h ;0413 f2 f6 35 . . 5 ld a,(02eb6h) ;0416 3a b6 2e : . . defb 0fdh,0bdh ;cp iyl ;0419 fd bd . . rla ;041b 17 . rst 18h ;041c df . ld b,e ;041d 43 C sub e ;041e 93 . and 014h ;041f e6 14 . . sub h ;0421 94 . jp pe,l0982h ;0422 ea 82 09 . . . ld l,c ;0425 69 i jp po,024d8h ;0426 e2 d8 24 . . $ call c,053a5h ;0429 dc a5 53 . . S ld c,h ;042c 4c L inc hl ;042d 23 # inc b ;042e 04 . rst 10h ;042f d7 . dec c ;0430 0d . xor b ;0431 a8 . pop af ;0432 f1 . or e ;0433 b3 . rst 8 ;0434 cf . jp m,0def8h ;0435 fa f8 de . . . inc b ;0438 04 . sbc a,0e7h ;0439 de e7 . . l043bh: ld a,(hl) ;043b 7e ~ out (04dh),a ;043c d3 4d . M add hl,hl ;043e 29 ) and a ;043f a7 . rst 38h ;0440 ff . sub (hl) ;0441 96 . dec a ;0442 3d = ld h,e ;0443 63 c cp a ;0444 bf . jr c,l04bbh ;0445 38 74 8 t exx ;0447 d9 . ret pe ;0448 e8 . di ;0449 f3 . ld e,013h ;044a 1e 13 . . ld c,d ;044c 4a J ld d,h ;044d 54 T sbc a,c ;044e 99 . and l ;044f a5 . call z,0930bh ;0450 cc 0b 93 . . . add a,e ;0453 83 . sub h ;0454 94 . ld d,01dh ;0455 16 1d . . ld c,l ;0457 4d M ret c ;0458 d8 . add hl,sp ;0459 39 9 ld a,a ;045a 7f  cp l ;045b bd . ld h,d ;045c 62 b jr c,l04a5h ;045d 38 46 8 F sbc a,(hl) ;045f 9e . ld h,e ;0460 63 c ld (hl),a ;0461 77 w adc a,e ;0462 8b . or c ;0463 b1 . ld a,l ;0464 7d } dec de ;0465 1b . add a,e ;0466 83 . ld b,021h ;0467 06 21 . ! jp 0de85h ;0469 c3 85 de . . . call p,04410h ;046c f4 10 44 . . D rst 20h ;046f e7 . nop ;0470 00 . ex af,af' ;0471 08 . ld h,l ;0472 65 e dec b ;0473 05 . rla ;0474 17 . or l ;0475 b5 . adc a,b ;0476 88 . sub 0ffh ;0477 d6 ff . . xor h ;0479 ac . inc b ;047a 04 . ex de,hl ;047b eb . or b ;047c b0 . ei ;047d fb . cp h ;047e bc . ld d,a ;047f 57 W ld h,a ;0480 67 g sub a ;0481 97 . ret z ;0482 c8 . daa ;0483 27 ' ld c,00ch ;0484 0e 0c . . inc a ;0486 3c < ei ;0487 fb . or c ;0488 b1 . ld a,h ;0489 7c | ld c,d ;048a 4a J ld h,010h ;048b 26 10 & . add a,(hl) ;048d 86 . ld b,b ;048e 40 @ ret c ;048f d8 . in a,(055h) ;0490 db 55 . U ld c,l ;0492 4d M cp l ;0493 bd . sub e ;0494 93 . or (hl) ;0495 b6 . ld c,a ;0496 4f O push hl ;0497 e5 . sub l ;0498 95 . rst 0 ;0499 c7 . dec h ;049a 25 % ld b,(hl) ;049b 46 F add a,023h ;049c c6 23 . # ld (hl),c ;049e 71 q ld l,e ;049f 6b k halt ;04a0 76 v ld sp,hl ;04a1 f9 . xor (hl) ;04a2 ae . ld a,(de) ;04a3 1a . ld sp,hl ;04a4 f9 . l04a5h: ld b,e ;04a5 43 C ret p ;04a6 f0 . nop ;04a7 00 . sub e ;04a8 93 . xor (hl) ;04a9 ae . push af ;04aa f5 . jr z,l052ch ;04ab 28 7f (  ex (sp),hl ;04ad e3 . jp c,04b97h ;04ae da 97 4b . . K dec c ;04b1 0d . call z,0d01dh ;04b2 cc 1d d0 . . . add a,b ;04b5 80 . ld e,c ;04b6 59 Y cp l ;04b7 bd . ld a,b ;04b8 78 x ld (hl),l ;04b9 75 u ld (hl),d ;04ba 72 r l04bbh: call po,06965h ;04bb e4 65 69 . e i ld e,h ;04be 5c \ ld c,c ;04bf 49 I adc a,a ;04c0 8f . cp e ;04c1 bb . ld a,l ;04c2 7d } ld (de),a ;04c3 12 . ld c,l ;04c4 4d M l04c5h: adc a,0a4h ;04c5 ce a4 . . jp (hl) ;04c7 e9 . ld c,(hl) ;04c8 4e N ld sp,hl ;04c9 f9 . xor a ;04ca af . and l ;04cb a5 . cp 02bh ;04cc fe 2b . + adc a,b ;04ce 88 . ld b,078h ;04cf 06 78 . x ld c,b ;04d1 48 H ld e,h ;04d2 5c \ jp 024b5h ;04d3 c3 b5 24 . . $ rst 8 ;04d6 cf . sbc a,(hl) ;04d7 9e . ld e,(hl) ;04d8 5e ^ ld a,e ;04d9 7b { ld e,l ;04da 5d ] push bc ;04db c5 . ld h,e ;04dc 63 c ld h,l ;04dd 65 e ld a,h ;04de 7c | rst 18h ;04df df . ld d,(hl) ;04e0 56 V rrca ;04e1 0f . ret po ;04e2 e0 . ex de,hl ;04e3 eb . dec l ;04e4 2d - ld b,0b8h ;04e5 06 b8 . . ret p ;04e7 f0 . sub (hl) ;04e8 96 . ld a,085h ;04e9 3e 85 > . or a ;04eb b7 . ld (hl),a ;04ec 77 w ld c,d ;04ed 4a J cp a ;04ee bf . inc l ;04ef 2c , ld l,l ;04f0 6d m ld c,h ;04f1 4c L inc c ;04f2 0c . ld e,d ;04f3 5a Z cp a ;04f4 bf . pop af ;04f5 f1 . sbc a,(hl) ;04f6 9e . ld (hl),0a9h ;04f7 36 a9 6 . jp c,077a1h ;04f9 da a1 77 . . w halt ;04fc 76 v add a,b ;04fd 80 . defb 0eah,0cfh ;04fe ea cf . . test_code_end: ld a,(de) ;0500 1a . sub (hl) ;0501 96 . ld (hl),e ;0502 73 s jp nz,041b9h ;0503 c2 b9 41 . . A ld h,h ;0506 64 d ld sp,hl ;0507 f9 . adc a,c ;0508 89 . xor 09dh ;0509 ee 9d . . dec a ;050b 3d = or b ;050c b0 . jr z,l04c5h ;050d 28 b6 ( . ret nc ;050f d0 . push af ;0510 f5 . or d ;0511 b2 . ex af,af' ;0512 08 . ret nz ;0513 c0 . rrca ;0514 0f . ld (hl),b ;0515 70 p or a ;0516 b7 . rst 10h ;0517 d7 . jp 0b87ah ;0518 c3 7a b8 . z . rrca ;051b 0f . out (02fh),a ;051c d3 2f . / or c ;051e b1 . add a,h ;051f 84 . ld c,(hl) ;0520 4e N defb 0fdh,01ah,0fbh ;illegal sequence ;0521 fd 1a fb . . . inc e ;0524 1c . jp p,0151dh ;0525 f2 1d 15 . . . xor 0ach ;0528 ee ac . . sbc a,h ;052a 9c . ld (hl),d ;052b 72 r l052ch: push af ;052c f5 . pop de ;052d d1 . rst 38h ;052e ff . ld e,d ;052f 5a Z inc sp ;0530 33 3 add a,b ;0531 80 . dec h ;0532 25 % add hl,hl ;0533 29 ) jp po,0240dh ;0534 e2 0d 24 . . $ l0537h: ld l,d ;0537 6a j ld de,0d005h ;0538 11 05 d0 . . . call 036ech ;053b cd ec 36 . . 6 sub (hl) ;053e 96 . call m,096bfh ;053f fc bf 96 . . . ld h,b ;0542 60 ` and (hl) ;0543 a6 . sbc a,c ;0544 99 . cp e ;0545 bb . adc a,055h ;0546 ce 55 . U rst 10h ;0548 d7 . ld b,l ;0549 45 E jp (hl) ;054a e9 . ld h,d ;054b 62 b jr z,l0567h ;054c 28 19 ( . ccf ;054e 3f ? l054fh: ld c,l ;054f 4d M cp (hl) ;0550 be . and d ;0551 a2 . inc d ;0552 14 . rst 30h ;0553 f7 . ld b,d ;0554 42 B sub h ;0555 94 . ld d,a ;0556 57 W ld h,a ;0557 67 g add a,e ;0558 83 . jr nz,l05b4h ;0559 20 59 Y or h ;055b b4 . adc a,h ;055c 8c . sub 036h ;055d d6 36 . 6 rst 38h ;055f ff . ld l,l ;0560 6d m pop hl ;0561 e1 . ret nc ;0562 d0 . inc h ;0563 24 $ ret ;0564 c9 . ld (hl),b ;0565 70 p ld e,b ;0566 58 X l0567h: ret z ;0567 c8 . ld l,b ;0568 68 h ld hl,08c1fh ;0569 21 1f 8c ! . . adc a,h ;056c 8c . in a,(041h) ;056d db 41 . A ld a,(bc) ;056f 0a . xor e ;0570 ab . ld h,l ;0571 65 e set 0,c ;0572 cb c1 . . ld l,l ;0574 6d m ld d,h ;0575 54 T ld l,011h ;0576 2e 11 . . ex de,hl ;0578 eb . xor b ;0579 a8 . ld c,l ;057a 4d M ld l,h ;057b 6c l add hl,bc ;057c 09 . inc (hl) ;057d 34 4 add a,h ;057e 84 . ld a,(018f9h) ;057f 3a f9 18 : . . ld c,l ;0582 4d M ld h,a ;0583 67 g di ;0584 f3 . adc a,l ;0585 8d . cp l ;0586 bd . add a,b ;0587 80 . ld h,d ;0588 62 b inc e ;0589 1c . halt ;058a 76 v push hl ;058b e5 . rla ;058c 17 . dec a ;058d 3d = ld (hl),d ;058e 72 r ld d,046h ;058f 16 46 . F cp h ;0591 bc . jp 09d67h ;0592 c3 67 9d . g . or b ;0595 b0 . xor (hl) ;0596 ae . and a ;0597 a7 . xor c ;0598 a9 . ld l,c ;0599 69 i ld de,09b27h ;059a 11 27 9b . ' . sbc a,c ;059d 99 . ld a,d ;059e 7a z ld h,b ;059f 60 ` ld b,(hl) ;05a0 46 F ld c,d ;05a1 4a J jr nz,l0537h ;05a2 20 93 . jp po,099c7h ;05a4 e2 c7 99 . . . and b ;05a7 a0 . ld (hl),e ;05a8 73 s ld h,02bh ;05a9 26 2b & + ld (hl),b ;05ab 70 p jr l054fh ;05ac 18 a1 . . sbc a,d ;05ae 9a . jp pe,09292h ;05af ea 92 92 . . . rrca ;05b2 0f . ld (bc),a ;05b3 02 . l05b4h: rst 28h ;05b4 ef . ld l,a ;05b5 6f o ret p ;05b6 f0 . ld h,h ;05b7 64 d out (06bh),a ;05b8 d3 6b . k ld e,017h ;05ba 1e 17 . . ld sp,hl ;05bc f9 . or (hl) ;05bd b6 . dec bc ;05be 0b . jr c,$+5 ;05bf 38 03 8 . ld h,(hl) ;05c1 66 f sub e ;05c2 93 . ld h,0f4h ;05c3 26 f4 & . sub c ;05c5 91 . ld e,h ;05c6 5c \ ld e,d ;05c7 5a Z rst 18h ;05c8 df . rst 38h ;05c9 ff . ld e,b ;05ca 58 X sbc a,(hl) ;05cb 9e . ld d,h ;05cc 54 T ld hl,0d280h ;05cd 21 80 d2 ! . . ld c,0c5h ;05d0 0e c5 . . ld a,h ;05d2 7c | inc bc ;05d3 03 . rst 20h ;05d4 e7 . dec c ;05d5 0d . ld e,0b7h ;05d6 1e b7 . . call po,0e102h ;05d8 e4 02 e1 . . . inc hl ;05db 23 # ret nc ;05dc d0 . ld h,063h ;05dd 26 63 & c ret nz ;05df c0 . add a,c ;05e0 81 . and b ;05e1 a0 . inc (hl) ;05e2 34 4 pop de ;05e3 d1 . ld d,d ;05e4 52 R or a ;05e5 b7 . inc b ;05e6 04 . call po,05e6ah ;05e7 e4 6a 5e . j ^ ld h,h ;05ea 64 d add a,e ;05eb 83 . adc a,e ;05ec 8b . sub 0cah ;05ed d6 ca . . ld b,d ;05ef 42 B sbc a,e ;05f0 9b . push hl ;05f1 e5 . ex af,af' ;05f2 08 . cp a ;05f3 bf . ret pe ;05f4 e8 . sbc a,h ;05f5 9c . jp z,0a3beh ;05f6 ca be a3 . . . add hl,sp ;05f9 39 9 call nz,0b810h ;05fa c4 10 b8 . . . halt ;05fd 76 v sbc a,(hl) ;05fe 9e . dec b ;05ff 05 . ld d,b ;0600 50 P ld e,d ;0601 5a Z and a ;0602 a7 . ld l,h ;0603 6c l ld (hl),e ;0604 73 s call p,02aa1h ;0605 f4 a1 2a . . * adc a,l ;0608 8d . ld h,l ;0609 65 e ld b,a ;060a 47 G call po,02076h ;060b e4 76 20 . v ld a,(hl) ;060e 7e ~ cpl ;060f 2f / ld b,d ;0610 42 B ld b,a ;0611 47 G ld e,e ;0612 5b [ cp h ;0613 bc . or (hl) ;0614 b6 . ld (0f73ah),hl ;0615 22 3a f7 " : . sub d ;0618 92 . dec h ;0619 25 % ld h,e ;061a 63 c rla ;061b 17 . jr l0650h ;061c 18 32 . 2 jr z,$-110 ;061e 28 90 ( . jp c,031bch ;0620 da bc 31 . . 1 jp nc,083f0h ;0623 d2 f0 83 . . . rrca ;0626 0f . ld (hl),063h ;0627 36 63 6 c and e ;0629 a3 . ld d,095h ;062a 16 95 . . ld e,c ;062c 59 Y l062dh: ld d,e ;062d 53 S ret nc ;062e d0 . dec a ;062f 3d = adc a,l ;0630 8d . ld b,d ;0631 42 B call p,0cae7h ;0632 f4 e7 ca . . . inc h ;0635 24 $ daa ;0636 27 ' in a,(0beh) ;0637 db be . . xor (hl) ;0639 ae . nop ;063a 00 . rst 38h ;063b ff . ld d,a ;063c 57 W jr z,$-108 ;063d 28 92 ( . adc a,0c7h ;063f ce c7 . . ld b,b ;0641 40 @ ld c,e ;0642 4b K add a,e ;0643 83 . sub e ;0644 93 . or 0fch ;0645 f6 fc . . ld c,c ;0647 49 I jp nz,0a178h ;0648 c2 78 a1 . x . sbc a,017h ;064b de 17 . . ld hl,0a5d0h ;064d 21 d0 a5 ! . . l0650h: ld l,(hl) ;0650 6e n ex (sp),hl ;0651 e3 . ret m ;0652 f8 . cp l ;0653 bd . ld h,h ;0654 64 d ld a,(hl) ;0655 7e ~ inc h ;0656 24 $ dec h ;0657 25 % sub a ;0658 97 . ld (hl),e ;0659 73 s ld b,c ;065a 41 A ld e,b ;065b 58 X jr nz,l06d1h ;065c 20 73 s ld a,(0e04ch) ;065e 3a 4c e0 : L . defb 0fdh,01ah,095h ;illegal sequence ;0661 fd 1a 95 . . . cp (hl) ;0664 be . sub h ;0665 94 . di ;0666 f3 . xor b ;0667 a8 . jr nz,l062dh ;0668 20 c3 . ld c,l ;066a 4d M ld d,b ;066b 50 P ret z ;066c c8 . add a,b ;066d 80 . and (hl) ;066e a6 . ld (08cb9h),hl ;066f 22 b9 8c " . . cp a ;0672 bf . sub a ;0673 97 . ld b,h ;0674 44 D ld e,070h ;0675 1e 70 . p ld de,0c83ah ;0677 11 3a c8 . : . rst 18h ;067a df . djnz $+116 ;067b 10 72 . r ld l,a ;067d 6f o ld a,e ;067e 7b { ld e,(hl) ;067f 5e ^ sbc a,b ;0680 98 . ld b,l ;0681 45 E ld l,a ;0682 6f o ld a,c ;0683 79 y ld b,e ;0684 43 C rst 20h ;0685 e7 . ld a,b ;0686 78 x ld d,075h ;0687 16 75 . u ld e,l ;0689 5d ] jp po,04b37h ;068a e2 37 4b . 7 K cp c ;068d b9 . ld (hl),b ;068e 70 p ld a,d ;068f 7a z rst 20h ;0690 e7 . sbc a,h ;0691 9c . ld (013cbh),a ;0692 32 cb 13 2 . . cpl ;0695 2f / ld a,(bc) ;0696 0a . cp c ;0697 b9 . cp a ;0698 bf . jr $+45 ;0699 18 2b . + ld a,(hl) ;069b 7e ~ in a,(0b5h) ;069c db b5 . . ld c,b ;069e 48 H ld e,(hl) ;069f 5e ^ ld l,l ;06a0 6d m rst 0 ;06a1 c7 . cp c ;06a2 b9 . inc h ;06a3 24 $ jp nz,099bfh ;06a4 c2 bf 99 . . . and e ;06a7 a3 . sbc a,e ;06a8 9b . add hl,hl ;06a9 29 ) dec h ;06aa 25 % or e ;06ab b3 . call pe,039a0h ;06ac ec a0 39 . . 9 ld e,(hl) ;06af 5e ^ di ;06b0 f3 . ld a,e ;06b1 7b { ld (hl),h ;06b2 74 t dec l ;06b3 2d - jp m,020d0h ;06b4 fa d0 20 . . or a ;06b7 b7 . ld d,b ;06b8 50 P sbc a,060h ;06b9 de 60 . ` ld b,a ;06bb 47 G ld l,058h ;06bc 2e 58 . X ld c,a ;06be 4f O nop ;06bf 00 . call 05a87h ;06c0 cd 87 5a . . Z xor (hl) ;06c3 ae . sbc a,(hl) ;06c4 9e . jp pe,09426h ;06c5 ea 26 94 . & . sbc a,l ;06c8 9d . push hl ;06c9 e5 . pop af ;06ca f1 . ld d,c ;06cb 51 Q sub a ;06cc 97 . ret po ;06cd e0 . exx ;06ce d9 . ret po ;06cf e0 . sub b ;06d0 90 . l06d1h: rst 30h ;06d1 f7 . inc b ;06d2 04 . ex af,af' ;06d3 08 . ccf ;06d4 3f ? inc b ;06d5 04 . xor d ;06d6 aa . adc a,d ;06d7 8a . ld (de),a ;06d8 12 . or a ;06d9 b7 . ld c,b ;06da 48 H jp nz,06ceah ;06db c2 ea 6c . . l inc sp ;06de 33 3 jp nz,038adh ;06df c2 ad 38 . . 8 dec h ;06e2 25 % ld d,a ;06e3 57 W and (hl) ;06e4 a6 . ld h,h ;06e5 64 d sub d ;06e6 92 . ld a,l ;06e7 7d } ld l,l ;06e8 6d m jr nc,l071ch ;06e9 30 31 0 1 ld d,c ;06eb 51 Q add a,l ;06ec 85 . ld (de),a ;06ed 12 . jp z,01772h ;06ee ca 72 17 . r . ld a,h ;06f1 7c | ld l,(hl) ;06f2 6e n ld d,(hl) ;06f3 56 V inc d ;06f4 14 . call p,0c84eh ;06f5 f4 4e c8 . N . ret po ;06f8 e0 . ld c,(hl) ;06f9 4e N jp nc,02d23h ;06fa d2 23 2d . # - sbc a,b ;06fd 98 . ld c,a ;06fe 4f O sub e ;06ff 93 . sbc a,(hl) ;0700 9e . ld h,d ;0701 62 b jp pe,0a25dh ;0702 ea 5d a2 . ] . ld l,e ;0705 6b k call pe,044b9h ;0706 ec b9 44 . . D xor b ;0709 a8 . add a,b ;070a 80 . ld (hl),d ;070b 72 r jp (hl) ;070c e9 . sub (hl) ;070d 96 . ld h,c ;070e 61 a or e ;070f b3 . ret p ;0710 f0 . ld b,d ;0711 42 B add hl,sp ;0712 39 9 sub a ;0713 97 . rlca ;0714 07 . ld b,c ;0715 41 A sbc a,a ;0716 9f . sub l ;0717 95 . ld hl,07b58h ;0718 21 58 7b ! X { sbc a,(hl) ;071b 9e . l071ch: defb 0edh;next byte illegal after ed ;071c ed . ld c,07dh ;071d 0e 7d . } call z,0a074h ;071f cc 74 a0 . t . sbc a,0c0h ;0722 de c0 . . sub d ;0724 92 . ld e,b ;0725 58 X ld l,b ;0726 68 h set 0,(hl) ;0727 cb c6 . . jp m,l06d1h ;0729 fa d1 06 . . . out (02eh),a ;072c d3 2e . . ret po ;072e e0 . ccf ;072f 3f ? or l ;0730 b5 . sbc a,d ;0731 9a . jp m,00de9h ;0732 fa e9 0d . . . di ;0735 f3 . jp p,0b887h ;0736 f2 87 b8 . . . ld c,(hl) ;0739 4e N ld l,a ;073a 6f o rst 0 ;073b c7 . ld l,c ;073c 69 i add a,c ;073d 81 . dec a ;073e 3d = inc sp ;073f 33 3 adc a,c ;0740 89 . ld b,046h ;0741 06 46 . F push de ;0743 d5 . ld (de),a ;0744 12 . inc a ;0745 3c < ld d,a ;0746 57 W inc d ;0747 14 . ld a,c ;0748 79 y rst 30h ;0749 f7 . push bc ;074a c5 . dec d ;074b 15 . rst 28h ;074c ef . cp a ;074d bf . xor a ;074e af . and b ;074f a0 . rst 38h ;0750 ff . ld b,d ;0751 42 B ret ;0752 c9 . ld d,a ;0753 57 W or l ;0754 b5 . ld c,b ;0755 48 H dec (hl) ;0756 35 5 ret pe ;0757 e8 . xor d ;0758 aa . ld b,c ;0759 41 A and d ;075a a2 . ld a,025h ;075b 3e 25 > % xor e ;075d ab . l075eh: ld l,d ;075e 6a j ex af,af' ;075f 08 . ld (de),a ;0760 12 . ld l,e ;0761 6b k sub a ;0762 97 . cp l ;0763 bd . nop ;0764 00 . pop de ;0765 d1 . add a,(hl) ;0766 86 . ld c,l ;0767 4d M sbc a,b ;0768 98 . inc d ;0769 14 . out (020h),a ;076a d3 20 . dec sp ;076c 3b ; ld c,b ;076d 48 H ld (hl),b ;076e 70 p add hl,de ;076f 19 . in a,(0bfh) ;0770 db bf . . call m,07363h ;0772 fc 63 73 . c s jp c,0999dh ;0775 da 9d 99 . . . dec a ;0778 3d = cp 08bh ;0779 fe 8b . . or 000h ;077b f6 00 . . ld c,c ;077d 49 I push hl ;077e e5 . ld b,c ;077f 41 A djnz l075eh ;0780 10 dc . . pop de ;0782 d1 . l0783h: call m,04989h ;0783 fc 89 49 . . I push bc ;0786 c5 . jp z,01b7dh ;0787 ca 7d 1b . } . ld l,(hl) ;078a 6e n ld e,h ;078b 5c \ rst 28h ;078c ef . ld b,b ;078d 40 @ jr l0783h ;078e 18 f3 . . add a,c ;0790 81 . ret c ;0791 d8 . push af ;0792 f5 . ld d,l ;0793 55 U ld a,0f6h ;0794 3e f6 > . inc bc ;0796 03 . jp c,0e416h ;0797 da 16 e4 . . . ex de,hl ;079a eb . rst 10h ;079b d7 . ret po ;079c e0 . ld b,l ;079d 45 E ld c,b ;079e 48 H ei ;079f fb . ld c,e ;07a0 4b K adc a,l ;07a1 8d . ld b,h ;07a2 44 D call 0f3f0h ;07a3 cd f0 f3 . . . ld bc,0646fh ;07a6 01 6f 64 . o d jp nz,0e648h ;07a9 c2 48 e6 . H . rrca ;07ac 0f . ld h,b ;07ad 60 ` xor (hl) ;07ae ae . ld (l0c07h),hl ;07af 22 07 0c " . . dec a ;07b2 3d = and e ;07b3 a3 . jp m,0b812h ;07b4 fa 12 b8 . . . ld h,c ;07b7 61 a l07b8h: ld (hl),a ;07b8 77 w ld h,l ;07b9 65 e ret c ;07ba d8 . ld sp,hl ;07bb f9 . and a ;07bc a7 . cp l ;07bd bd . dec h ;07be 25 % sub 0ach ;07bf d6 ac . . ld h,e ;07c1 63 c sbc a,(hl) ;07c2 9e . ld c,e ;07c3 4b K di ;07c4 f3 . rst 20h ;07c5 e7 . ret m ;07c6 f8 . ld h,h ;07c7 64 d ld (de),a ;07c8 12 . ld e,e ;07c9 5b [ or c ;07ca b1 . sbc a,050h ;07cb de 50 . P or d ;07cd b2 . sub (hl) ;07ce 96 . or c ;07cf b1 . inc de ;07d0 13 . inc h ;07d1 24 $ rst 8 ;07d2 cf . ld (hl),b ;07d3 70 p or a ;07d4 b7 . ld e,c ;07d5 59 Y pop hl ;07d6 e1 . adc a,h ;07d7 8c . xor (hl) ;07d8 ae . ld e,l ;07d9 5d ] l07dah: ld (hl),07bh ;07da 36 7b 6 { xor l ;07dc ad . cp a ;07dd bf . xor (hl) ;07de ae . add a,d ;07df 82 . dec c ;07e0 0d . push hl ;07e1 e5 . jp 024a9h ;07e2 c3 a9 24 . . $ ld e,c ;07e5 59 Y ld e,e ;07e6 5b [ xor a ;07e7 af . add a,084h ;07e8 c6 84 . . ld (hl),002h ;07ea 36 02 6 . inc hl ;07ec 23 # ld sp,hl ;07ed f9 . ld hl,05204h ;07ee 21 04 52 ! . R rst 18h ;07f1 df . inc de ;07f2 13 . ld a,(de) ;07f3 1a . ld (hl),c ;07f4 71 q add a,e ;07f5 83 . ld (hl),a ;07f6 77 w djnz l07dah ;07f7 10 e1 . . ld l,035h ;07f9 2e 35 . 5 xor h ;07fb ac . or 0a8h ;07fc f6 a8 . . xor e ;07fe ab . and h ;07ff a4 . ld c,d ;0800 4a J add a,a ;0801 87 . add a,d ;0802 82 . add a,l ;0803 85 . ld (de),a ;0804 12 . halt ;0805 76 v ccf ;0806 3f ? inc d ;0807 14 . cp d ;0808 ba . sub l ;0809 95 . ld e,b ;080a 58 X ld de,095b5h ;080b 11 b5 95 . . . sbc a,e ;080e 9b . sub e ;080f 93 . xor (hl) ;0810 ae . add a,e ;0811 83 . inc hl ;0812 23 # in a,(04bh) ;0813 db 4b . K sbc a,0c8h ;0815 de c8 . . rla ;0817 17 . add hl,bc ;0818 09 . pop af ;0819 f1 . ld (bc),a ;081a 02 . ld l,(hl) ;081b 6e n ld d,h ;081c 54 T dec (hl) ;081d 35 5 ld h,e ;081e 63 c l081fh: dec a ;081f 3d = dec l ;0820 2d - ld (hl),e ;0821 73 s xor 065h ;0822 ee 65 . e ld c,a ;0824 4f O djnz l086eh ;0825 10 47 . G and e ;0827 a3 . dec hl ;0828 2b + inc d ;0829 14 . ld d,d ;082a 52 R and h ;082b a4 . inc e ;082c 1c . sbc a,c ;082d 99 . ld b,045h ;082e 06 45 . E inc (hl) ;0830 34 4 ld a,c ;0831 79 y ld bc,05045h ;0832 01 45 50 . E P add a,d ;0835 82 . out (02bh),a ;0836 d3 2b . + inc (hl) ;0838 34 4 ld h,a ;0839 67 g add a,001h ;083a c6 01 . . ld d,c ;083c 51 Q sub 0dbh ;083d d6 db . . sbc a,d ;083f 9a . ld d,025h ;0840 16 25 . % jr nc,l0861h ;0842 30 1d 0 . and b ;0844 a0 . ld l,c ;0845 69 i ld c,d ;0846 4a J add a,a ;0847 87 . defb 0fdh,0ebh,050h ;illegal sequence ;0848 fd eb 50 . . P ld sp,hl ;084b f9 . jp c,0a793h ;084c da 93 a7 . . . ld h,e ;084f 63 c inc d ;0850 14 . ld c,c ;0851 49 I push bc ;0852 c5 . add a,l ;0853 85 . jp p,06d1ah ;0854 f2 1a 6d . . m dec c ;0857 0d . ld (098f8h),a ;0858 32 f8 98 2 . . dec a ;085b 3d = pop bc ;085c c1 . ld (hl),065h ;085d 36 65 6 e ld d,c ;085f 51 Q ld d,l ;0860 55 U l0861h: adc a,0ceh ;0861 ce ce . . ld d,d ;0863 52 R jr l08a9h ;0864 18 43 . C xor d ;0866 aa . ld bc,0eda2h ;0867 01 a2 ed . . . call m,05bc5h ;086a fc c5 5b . . [ ld a,c ;086d 79 y l086eh: ld l,l ;086e 6d m ld d,h ;086f 54 T ld a,b ;0870 78 x ld h,d ;0871 62 b or 061h ;0872 f6 61 . a call po,0fa23h ;0874 e4 23 fa . # . ld l,0a3h ;0877 2e a3 . . ld a,c ;0879 79 y add a,a ;087a 87 . adc a,b ;087b 88 . dec c ;087c 0d . ld a,c ;087d 79 y ld h,e ;087e 63 c and a ;087f a7 . ld (hl),h ;0880 74 t ld b,a ;0881 47 G jr nz,$-36 ;0882 20 da . ld b,e ;0884 43 C inc bc ;0885 03 . xor b ;0886 a8 . adc a,a ;0887 8f . ld e,c ;0888 59 Y ld b,e ;0889 43 C sub b ;088a 90 . and c ;088b a1 . or a ;088c b7 . ld d,(hl) ;088d 56 V ld l,(hl) ;088e 6e n inc b ;088f 04 . sub l ;0890 95 . inc l ;0891 2c , cp (hl) ;0892 be . sbc a,(hl) ;0893 9e . ld (hl),a ;0894 77 w ld sp,hl ;0895 f9 . rst 38h ;0896 ff . and e ;0897 a3 . jp nc,03b14h ;0898 d2 14 3b . . ; or b ;089b b0 . ld h,d ;089c 62 b add a,b ;089d 80 . ld h,b ;089e 60 ` exx ;089f d9 . ld (hl),d ;08a0 72 r or d ;08a1 b2 . ret m ;08a2 f8 . ld l,a ;08a3 6f o or 079h ;08a4 f6 79 . y ld h,e ;08a6 63 c and (hl) ;08a7 a6 . ld l,e ;08a8 6b k l08a9h: rst 10h ;08a9 d7 . inc sp ;08aa 33 3 inc sp ;08ab 33 3 ld h,0b2h ;08ac 26 b2 & . djnz l08f9h ;08ae 10 49 . I rrca ;08b0 0f . or b ;08b1 b0 . nop ;08b2 00 . ld h,e ;08b3 63 c ld b,l ;08b4 45 E sbc a,c ;08b5 99 . add hl,sp ;08b6 39 9 jr c,l091fh ;08b7 38 66 8 f sub h ;08b9 94 . daa ;08ba 27 ' sbc a,h ;08bb 9c . add a,c ;08bc 81 . ld a,l ;08bd 7d } ld c,d ;08be 4a J ld sp,0abd3h ;08bf 31 d3 ab 1 . . push hl ;08c2 e5 . or b ;08c3 b0 . and h ;08c4 a4 . sub e ;08c5 93 . rst 20h ;08c6 e7 . ld e,a ;08c7 5f _ di ;08c8 f3 . jp m,068cbh ;08c9 fa cb 68 . . h ld h,d ;08cc 62 b ld d,(hl) ;08cd 56 V ld b,(hl) ;08ce 46 F ld b,d ;08cf 42 B push de ;08d0 d5 . ld h,b ;08d1 60 ` inc d ;08d2 14 . dec c ;08d3 0d . cp b ;08d4 b8 . add a,e ;08d5 83 . dec de ;08d6 1b . sbc a,e ;08d7 9b . ld c,a ;08d8 4f O inc a ;08d9 3c < add hl,hl ;08da 29 ) or e ;08db b3 . defb 0ddh,028h,05ch ;illegal sequence ;08dc dd 28 5c . ( \ ld e,b ;08df 58 X xor l ;08e0 ad . xor d ;08e1 aa . jp 08309h ;08e2 c3 09 83 . . . adc a,b ;08e5 88 . ld b,l ;08e6 45 E add a,d ;08e7 82 . or b ;08e8 b0 . dec de ;08e9 1b . ld l,d ;08ea 6a j inc bc ;08eb 03 . ld l,h ;08ec 6c l jp po,0c1e3h ;08ed e2 e3 c1 . . . push hl ;08f0 e5 . or c ;08f1 b1 . ld l,e ;08f2 6b k ld d,h ;08f3 54 T ld d,l ;08f4 55 U or c ;08f5 b1 . jp m,0d8bdh ;08f6 fa bd d8 . . . l08f9h: ex de,hl ;08f9 eb . inc l ;08fa 2c , ret ;08fb c9 . ret m ;08fc f8 . ex de,hl ;08fd eb . inc de ;08fe 13 . call z,021eah ;08ff cc ea 21 . . ! ld c,016h ;0902 0e 16 . . xor c ;0904 a9 . ld b,l ;0905 45 E ex af,af' ;0906 08 . ld e,l ;0907 5d ] pop de ;0908 d1 . sbc a,h ;0909 9c . and c ;090a a1 . in a,(082h) ;090b db 82 . . ld (hl),b ;090d 70 p inc d ;090e 14 . exx ;090f d9 . ld h,(hl) ;0910 66 f ld (04c49h),hl ;0911 22 49 4c " I L jp 023f3h ;0914 c3 f3 23 . . # or a ;0917 b7 . xor l ;0918 ad . xor a ;0919 af . ld c,b ;091a 48 H ld l,(hl) ;091b 6e n ld b,b ;091c 40 @ add a,b ;091d 80 . ret po ;091e e0 . l091fh: ld h,h ;091f 64 d jp po,028c2h ;0920 e2 c2 28 . . ( jp l0e6bh ;0923 c3 6b 0e . k . rst 18h ;0926 df . ld c,0f6h ;0927 0e f6 . . ld b,e ;0929 43 C ld c,h ;092a 4c L or h ;092b b4 . jp nz,08e8fh ;092c c2 8f 8e . . . add a,l ;092f 85 . rst 28h ;0930 ef . rst 18h ;0931 df . sub e ;0932 93 . adc a,a ;0933 8f . sbc a,h ;0934 9c . ld c,c ;0935 49 I add a,b ;0936 80 . ld l,l ;0937 6d m sbc a,h ;0938 9c . ld (hl),c ;0939 71 q xor (hl) ;093a ae . halt ;093b 76 v inc sp ;093c 33 3 ld (hl),08eh ;093d 36 8e 6 . ld c,09ah ;093f 0e 9a . . ld (03944h),a ;0941 32 44 39 2 D 9 dec h ;0944 25 % ret p ;0945 f0 . ex (sp),hl ;0946 e3 . ex de,hl ;0947 eb . inc sp ;0948 33 3 ld e,c ;0949 59 Y sbc a,a ;094a 9f . ld c,h ;094b 4c L ld a,b ;094c 78 x cp e ;094d bb . cp h ;094e bc . add a,028h ;094f c6 28 . ( or 08ch ;0951 f6 8c . . rrca ;0953 0f . rlca ;0954 07 . sub l ;0955 95 . or a ;0956 b7 . rst 20h ;0957 e7 . ret ;0958 c9 . ld a,c ;0959 79 y ld b,a ;095a 47 G ld l,b ;095b 68 h adc a,a ;095c 8f . call pe,0d366h ;095d ec 66 d3 . f . add hl,sp ;0960 39 9 ld bc,03c68h ;0961 01 68 3c . h < cp b ;0964 b8 . rst 10h ;0965 d7 . ld h,c ;0966 61 a ld l,a ;0967 6f o rst 0 ;0968 c7 . jp nc,0a590h ;0969 d2 90 a5 . . . di ;096c f3 . jp p,018d7h ;096d f2 d7 18 . . . ld (bc),a ;0970 02 . inc a ;0971 3c < rst 8 ;0972 cf . ld h,d ;0973 62 b out (008h),a ;0974 d3 08 . . or c ;0976 b1 . xor h ;0977 ac . ld l,a ;0978 6f o push bc ;0979 c5 . ld e,e ;097a 5b [ adc a,(hl) ;097b 8e . defb 0fdh,013h,00fh ;illegal sequence ;097c fd 13 0f . . . ld b,l ;097f 45 E ld e,h ;0980 5c \ ld b,c ;0981 41 A l0982h: ld e,l ;0982 5d ] ld l,h ;0983 6c l ld h,0b0h ;0984 26 b0 & . ex (sp),hl ;0986 e3 . ld b,b ;0987 40 @ jr l09b4h ;0988 18 2a . * ret po ;098a e0 . cp c ;098b b9 . xor l ;098c ad . ld a,(hl) ;098d 7e ~ call sub_017bh ;098e cd 7b 01 . { . dec e ;0991 1d . rst 28h ;0992 ef . ret m ;0993 f8 . dec (hl) ;0994 35 5 sbc a,b ;0995 98 . push bc ;0996 c5 . or d ;0997 b2 . ld e,h ;0998 5c \ ld c,h ;0999 4c L out (047h),a ;099a d3 47 . G sbc a,e ;099c 9b . and a ;099d a7 . ld d,08ah ;099e 16 8a . . inc d ;09a0 14 . inc h ;09a1 24 $ call z,09861h ;09a2 cc 61 98 . a . sbc a,d ;09a5 9a . dec hl ;09a6 2b + rst 20h ;09a7 e7 . push hl ;09a8 e5 . ld (hl),c ;09a9 71 q cp b ;09aa b8 . ld b,(hl) ;09ab 46 F adc a,036h ;09ac ce 36 . 6 ld h,d ;09ae 62 b ex af,af' ;09af 08 . and c ;09b0 a1 . ex (sp),hl ;09b1 e3 . push de ;09b2 d5 . ret z ;09b3 c8 . l09b4h: dec h ;09b4 25 % sub 072h ;09b5 d6 72 . r ld e,l ;09b7 5d ] ld c,d ;09b8 4a J ld b,e ;09b9 43 C sub e ;09ba 93 . djnz $+21 ;09bb 10 13 . . rst 8 ;09bd cf . ld a,(05a71h) ;09be 3a 71 5a : q Z sub e ;09c1 93 . sub d ;09c2 92 . add a,b ;09c3 80 . sbc a,011h ;09c4 de 11 . . ld e,b ;09c6 58 X ld (bc),a ;09c7 02 . jr nz,$+30 ;09c8 20 1c . or c ;09ca b1 . or 0f0h ;09cb f6 f0 . . add a,(hl) ;09cd 86 . inc l ;09ce 2c , xor 063h ;09cf ee 63 . c ret nz ;09d1 c0 . sbc a,c ;09d2 99 . add a,h ;09d3 84 . ld d,d ;09d4 52 R ret c ;09d5 d8 . ld (hl),a ;09d6 77 w pop de ;09d7 d1 . ret m ;09d8 f8 . add a,e ;09d9 83 . adc a,(hl) ;09da 8e . ld (0852dh),a ;09db 32 2d 85 2 - . ld a,l ;09de 7d } sub d ;09df 92 . ld c,e ;09e0 4b K ld a,(de) ;09e1 1a . inc bc ;09e2 03 . add hl,sp ;09e3 39 9 call nc,05afah ;09e4 d4 fa 5a . . Z call nz,0d4c8h ;09e7 c4 c8 d4 . . . inc c ;09ea 0c . ld h,h ;09eb 64 d ld a,h ;09ec 7c | sub b ;09ed 90 . add a,a ;09ee 87 . ld (hl),l ;09ef 75 u sub e ;09f0 93 . ld l,c ;09f1 69 i dec (hl) ;09f2 35 5 call 060d2h ;09f3 cd d2 60 . . ` ld h,b ;09f6 60 ` ld d,d ;09f7 52 R ld l,h ;09f8 6c l inc l ;09f9 2c , jp c,01291h ;09fa da 91 12 . . . and b ;09fd a0 . rst 20h ;09fe e7 . or d ;09ff b2 . dec h ;0a00 25 % ccf ;0a01 3f ? jp nz,0b439h ;0a02 c2 39 b4 . 9 . ld a,(bc) ;0a05 0a . ex (sp),hl ;0a06 e3 . ld (hl),0e6h ;0a07 36 e6 6 . ld d,h ;0a09 54 T push af ;0a0a f5 . dec bc ;0a0b 0b . ld e,c ;0a0c 59 Y xor (hl) ;0a0d ae . ld e,(hl) ;0a0e 5e ^ ld l,c ;0a0f 69 i call c,0e0dah ;0a10 dc da e0 . . . inc c ;0a13 0c . xor 0dah ;0a14 ee da . . sbc a,b ;0a16 98 . add a,e ;0a17 83 . ld (hl),l ;0a18 75 u dec bc ;0a19 0b . ld hl,(034dfh) ;0a1a 2a df 34 * . 4 inc sp ;0a1d 33 3 ccf ;0a1e 3f ? sbc a,l ;0a1f 9d . jr nz,l0a34h ;0a20 20 12 . ld l,h ;0a22 6c l add a,e ;0a23 83 . sbc a,a ;0a24 9f . call pe,036b4h ;0a25 ec b4 36 . . 6 add hl,bc ;0a28 09 . ld l,h ;0a29 6c l ld a,c ;0a2a 79 y adc a,d ;0a2b 8a . di ;0a2c f3 . add a,b ;0a2d 80 . cp e ;0a2e bb . sub b ;0a2f 90 . dec a ;0a30 3d = ld b,c ;0a31 41 A dec bc ;0a32 0b . ld a,b ;0a33 78 x l0a34h: inc h ;0a34 24 $ ld e,h ;0a35 5c \ add hl,bc ;0a36 09 . jr c,$+102 ;0a37 38 64 8 d ld a,c ;0a39 79 y l0a3ah: rst 30h ;0a3a f7 . jr nz,l0a3ah ;0a3b 20 fd . ld e,049h ;0a3d 1e 49 . I rst 8 ;0a3f cf . ld c,h ;0a40 4c L ld e,c ;0a41 59 Y cp l ;0a42 bd . halt ;0a43 76 v add a,a ;0a44 87 . ld (hl),043h ;0a45 36 43 6 C rst 28h ;0a47 ef . sbc a,d ;0a48 9a . ld (06423h),de ;0a49 ed 53 23 64 . S # d ld a,(hl) ;0a4d 7e ~ dec l ;0a4e 2d - and h ;0a4f a4 . and c ;0a50 a1 . ld l,c ;0a51 69 i dec h ;0a52 25 % call nc,0ab8ch ;0a53 d4 8c ab . . . cp l ;0a56 bd . pop de ;0a57 d1 . jp p,0173eh ;0a58 f2 3e 17 . > . ld h,05bh ;0a5b 26 5b & [ ld d,d ;0a5d 52 R inc l ;0a5e 2c , dec sp ;0a5f 3b ; ld h,(hl) ;0a60 66 f ld hl,0e024h ;0a61 21 24 e0 ! $ . rst 18h ;0a64 df . ex (sp),hl ;0a65 e3 . ld e,a ;0a66 5f _ ret p ;0a67 f0 . ld c,e ;0a68 4b K scf ;0a69 37 7 ld a,b ;0a6a 78 x ld h,h ;0a6b 64 d rst 30h ;0a6c f7 . cp l ;0a6d bd . l0a6eh: inc b ;0a6e 04 . add a,b ;0a6f 80 . or d ;0a70 b2 . ld h,b ;0a71 60 ` ld l,h ;0a72 6c l sbc a,a ;0a73 9f . and 076h ;0a74 e6 76 . v ld b,b ;0a76 40 @ ld b,d ;0a77 42 B adc a,a ;0a78 8f . ret nc ;0a79 d0 . ret m ;0a7a f8 . xor a ;0a7b af . ld h,h ;0a7c 64 d ld (hl),0eah ;0a7d 36 ea 6 . call nc,04cfdh ;0a7f d4 fd 4c . . L sub h ;0a82 94 . ld hl,(0f895h) ;0a83 2a 95 f8 * . . sbc a,c ;0a86 99 . adc a,07ch ;0a87 ce 7c . | ccf ;0a89 3f ? ld d,c ;0a8a 51 Q xor e ;0a8b ab . and 0cbh ;0a8c e6 cb . . ccf ;0a8e 3f ? ld h,a ;0a8f 67 g or a ;0a90 b7 . ccf ;0a91 3f ? dec a ;0a92 3d = bit 7,(hl) ;0a93 cb 7e . ~ ret p ;0a95 f0 . di ;0a96 f3 . ld l,e ;0a97 6b k ld b,c ;0a98 41 A sub (hl) ;0a99 96 . ld (bc),a ;0a9a 02 . jp nc,0e879h ;0a9b d2 79 e8 . y . or c ;0a9e b1 . add a,c ;0a9f 81 . ld d,(hl) ;0aa0 56 V xor a ;0aa1 af . xor 0edh ;0aa2 ee ed . . ld b,b ;0aa4 40 @ ld bc,0c99fh ;0aa5 01 9f c9 . . . add a,(hl) ;0aa8 86 . cp c ;0aa9 b9 . call p,01679h ;0aaa f4 79 16 . y . jr nc,l0a6eh ;0aad 30 bf 0 . jp nz,057b0h ;0aaf c2 b0 57 . . W sub d ;0ab2 92 . or l ;0ab3 b5 . call 09b18h ;0ab4 cd 18 9b . . . sub (hl) ;0ab7 96 . add a,h ;0ab8 84 . add a,h ;0ab9 84 . jp nc,07bc6h ;0aba d2 c6 7b . . { ld (hl),a ;0abd 77 w ld h,a ;0abe 67 g ld h,b ;0abf 60 ` ret p ;0ac0 f0 . ret ;0ac1 c9 . rst 18h ;0ac2 df . and e ;0ac3 a3 . ld c,l ;0ac4 4d M sbc a,c ;0ac5 99 . ld bc,0d5f1h ;0ac6 01 f1 d5 . . . cp d ;0ac9 ba . ld (hl),e ;0aca 73 s ld c,c ;0acb 49 I cp h ;0acc bc . or (hl) ;0acd b6 . dec b ;0ace 05 . and l ;0acf a5 . pop hl ;0ad0 e1 . dec c ;0ad1 0d . jp 0da73h ;0ad2 c3 73 da . s . dec bc ;0ad5 0b . dec hl ;0ad6 2b + and d ;0ad7 a2 . ld e,c ;0ad8 59 Y rrca ;0ad9 0f . add a,d ;0ada 82 . ld sp,hl ;0adb f9 . ex de,hl ;0adc eb . cp d ;0add ba . sbc a,e ;0ade 9b . ld e,(hl) ;0adf 5e ^ pop bc ;0ae0 c1 . add hl,bc ;0ae1 09 . jp c,097fch ;0ae2 da fc 97 . . . ei ;0ae5 fb . rst 18h ;0ae6 df . ld (bc),a ;0ae7 02 . ret pe ;0ae8 e8 . ld h,h ;0ae9 64 d add a,h ;0aea 84 . ld a,l ;0aeb 7d } call c,0d5c7h ;0aec dc c7 d5 . . . ld e,d ;0aef 5a Z adc a,l ;0af0 8d . ld a,(bc) ;0af1 0a . adc a,l ;0af2 8d . inc (hl) ;0af3 34 4 sbc a,04dh ;0af4 de 4d . M ld c,a ;0af6 4f O add a,e ;0af7 83 . rst 0 ;0af8 c7 . pop de ;0af9 d1 . adc a,d ;0afa 8a . dec sp ;0afb 3b ; jp (hl) ;0afc e9 . sub (hl) ;0afd 96 . ld e,(hl) ;0afe 5e ^ cp a ;0aff bf . sub h ;0b00 94 . ld h,01fh ;0b01 26 1f & . ld (bc),a ;0b03 02 . adc a,d ;0b04 8a . in a,(048h) ;0b05 db 48 . H adc a,a ;0b07 8f . ld (hl),a ;0b08 77 w ld (hl),d ;0b09 72 r ld c,b ;0b0a 48 H xor b ;0b0b a8 . ld d,b ;0b0c 50 P ld (hl),b ;0b0d 70 p push bc ;0b0e c5 . and l ;0b0f a5 . res 1,c ;0b10 cb 89 . . jp (hl) ;0b12 e9 . ld b,e ;0b13 43 C jr l0b4dh ;0b14 18 37 . 7 or b ;0b16 b0 . and b ;0b17 a0 . rst 38h ;0b18 ff . and l ;0b19 a5 . jp 03803h ;0b1a c3 03 38 . . 8 defb 0ddh,0c6h,0ddh ;illegal sequence ;0b1d dd c6 dd . . . and l ;0b20 a5 . inc c ;0b21 0c . inc d ;0b22 14 . ld (hl),c ;0b23 71 q ei ;0b24 fb . ld c,06bh ;0b25 0e 6b . k ld e,(hl) ;0b27 5e ^ out (0b8h),a ;0b28 d3 b8 . . rst 10h ;0b2a d7 . ld e,h ;0b2b 5c \ and 095h ;0b2c e6 95 . . dec de ;0b2e 1b . ld hl,0e945h ;0b2f 21 45 e9 ! E . ld a,(l07b8h) ;0b32 3a b8 07 : . . sbc a,d ;0b35 9a . adc a,l ;0b36 8d . xor l ;0b37 ad . jp m,0a043h ;0b38 fa 43 a0 . C . call pe,0568ah ;0b3b ec 8a 56 . . V scf ;0b3e 37 7 sub d ;0b3f 92 . ld l,a ;0b40 6f o and l ;0b41 a5 . ei ;0b42 fb . ret m ;0b43 f8 . ld c,b ;0b44 48 H add hl,de ;0b45 19 . rla ;0b46 17 . ld h,a ;0b47 67 g rst 38h ;0b48 ff . sbc a,(hl) ;0b49 9e . ld a,d ;0b4a 7a z dec sp ;0b4b 3b ; ld b,c ;0b4c 41 A l0b4dh: add a,(hl) ;0b4d 86 . cp a ;0b4e bf . ld c,l ;0b4f 4d M ld c,d ;0b50 4a J adc a,(hl) ;0b51 8e . ld l,c ;0b52 69 i sub a ;0b53 97 . and l ;0b54 a5 . adc a,l ;0b55 8d . xor h ;0b56 ac . sub l ;0b57 95 . ld d,(hl) ;0b58 56 V or h ;0b59 b4 . or b ;0b5a b0 . add a,a ;0b5b 87 . ld (hl),h ;0b5c 74 t ld b,(hl) ;0b5d 46 F l0b5eh: cp c ;0b5e b9 . ret nz ;0b5f c0 . or c ;0b60 b1 . inc hl ;0b61 23 # inc a ;0b62 3c < xor 043h ;0b63 ee 43 . C dec b ;0b65 05 . ld hl,072feh ;0b66 21 fe 72 ! . r ld (hl),a ;0b69 77 w cp e ;0b6a bb . sbc a,d ;0b6b 9a . cp c ;0b6c b9 . xor 0bdh ;0b6d ee bd . . rlca ;0b6f 07 . ld d,(hl) ;0b70 56 V or c ;0b71 b1 . jr z,$-10 ;0b72 28 f4 ( . sbc a,(hl) ;0b74 9e . ld h,l ;0b75 65 e sbc a,l ;0b76 9d . add hl,sp ;0b77 39 9 ld l,h ;0b78 6c l halt ;0b79 76 v sub (hl) ;0b7a 96 . sbc a,d ;0b7b 9a . pop de ;0b7c d1 . in a,(09fh) ;0b7d db 9f . . ccf ;0b7f 3f ? ld e,h ;0b80 5c \ ld a,d ;0b81 7a z ld d,b ;0b82 50 P call nz,0bda4h ;0b83 c4 a4 bd . . . cp 01ah ;0b86 fe 1a . . sub b ;0b88 90 . ld l,b ;0b89 68 h rrca ;0b8a 0f . ld d,l ;0b8b 55 U rla ;0b8c 17 . l0b8dh: ld c,d ;0b8d 4a J call po,0dd16h ;0b8e e4 16 dd . . . ld e,b ;0b91 58 X ld bc,0d0efh ;0b92 01 ef d0 . . . rra ;0b95 1f . ld b,d ;0b96 42 B add a,e ;0b97 83 . ld d,a ;0b98 57 W ld (bc),a ;0b99 02 . ld d,0f2h ;0b9a 16 f2 . . jp m,0be37h ;0b9c fa 37 be . 7 . add a,b ;0b9f 80 . rlca ;0ba0 07 . jp po,02b12h ;0ba1 e2 12 2b . . + jr nc,l0b5eh ;0ba4 30 b8 0 . ret m ;0ba6 f8 . ld h,e ;0ba7 63 c ld l,b ;0ba8 68 h ld d,(hl) ;0ba9 56 V sub c ;0baa 91 . call p,0e72ah ;0bab f4 2a e7 . * . ld hl,03560h ;0bae 21 60 35 ! ` 5 ld b,b ;0bb1 40 @ exx ;0bb2 d9 . push de ;0bb3 d5 . ld c,b ;0bb4 48 H ld e,b ;0bb5 58 X dec e ;0bb6 1d . xor l ;0bb7 ad . ex de,hl ;0bb8 eb . ld e,0aah ;0bb9 1e aa . . dec (hl) ;0bbb 35 5 pop bc ;0bbc c1 . xor c ;0bbd a9 . ld b,02eh ;0bbe 06 2e . . ld a,090h ;0bc0 3e 90 > . ld e,l ;0bc2 5d ] ld d,d ;0bc3 52 R xor e ;0bc4 ab . ld d,c ;0bc5 51 Q add hl,sp ;0bc6 39 9 call c,0edebh ;0bc7 dc eb ed . . . push bc ;0bca c5 . ld c,h ;0bcb 4c L call nc,04a8fh ;0bcc d4 8f 4a . . J sbc a,d ;0bcf 9a . ld d,b ;0bd0 50 P sub l ;0bd1 95 . call c,04a0fh ;0bd2 dc 0f 4a . . J and b ;0bd5 a0 . call po,0c6f9h ;0bd6 e4 f9 c6 . . . xor c ;0bd9 a9 . inc de ;0bda 13 . ld e,(hl) ;0bdb 5e ^ call 013dah ;0bdc cd da 13 . . . cp 0d7h ;0bdf fe d7 . . ld l,(hl) ;0be1 6e n jp m,02394h ;0be2 fa 94 23 . . # add hl,bc ;0be5 09 . ld (0869bh),hl ;0be6 22 9b 86 " . . ld e,014h ;0be9 1e 14 . . add a,l ;0beb 85 . ld h,a ;0bec 67 g ret p ;0bed f0 . jp nz,0aef9h ;0bee c2 f9 ae . . . ld (hl),0d2h ;0bf1 36 d2 6 . xor 0bfh ;0bf3 ee bf . . inc bc ;0bf5 03 . ld l,b ;0bf6 68 h pop hl ;0bf7 e1 . ld b,(hl) ;0bf8 46 F ld (hl),043h ;0bf9 36 43 6 C ld c,h ;0bfb 4c L djnz $+122 ;0bfc 10 78 . x pop af ;0bfe f1 . call 0fff2h ;0bff cd f2 ff . . . cp 072h ;0c02 fe 72 . r ld b,e ;0c04 43 C rst 18h ;0c05 df . ld b,d ;0c06 42 B l0c07h: sub (iy+065h) ;0c07 fd 96 65 . . e ld (hl),b ;0c0a 70 p jp nc,02e83h ;0c0b d2 83 2e . . . inc c ;0c0e 0c . cp a ;0c0f bf . ld a,c ;0c10 79 y ld b,h ;0c11 44 D sbc a,l ;0c12 9d . dec h ;0c13 25 % add a,c ;0c14 81 . rst 20h ;0c15 e7 . adc a,e ;0c16 8b . dec l ;0c17 2d - ld e,d ;0c18 5a Z sbc a,l ;0c19 9d . ld h,l ;0c1a 65 e ld c,b ;0c1b 48 H djnz $-72 ;0c1c 10 b6 . . ld (hl),a ;0c1e 77 w ld hl,0a932h ;0c1f 21 32 a9 ! 2 . add a,e ;0c22 83 . ret m ;0c23 f8 . sub h ;0c24 94 . or (hl) ;0c25 b6 . halt ;0c26 76 v and d ;0c27 a2 . ld b,b ;0c28 40 @ cp e ;0c29 bb . and e ;0c2a a3 . l0c2bh: ld d,l ;0c2b 55 U ld l,b ;0c2c 68 h jp nc,0b0e1h ;0c2d d2 e1 b0 . . . pop hl ;0c30 e1 . call nc,0fa1ch ;0c31 d4 1c fa . . . rla ;0c34 17 . dec h ;0c35 25 % xor c ;0c36 a9 . add hl,de ;0c37 19 . adc a,b ;0c38 88 . sub (hl) ;0c39 96 . ccf ;0c3a 3f ? ld h,(hl) ;0c3b 66 f ld c,e ;0c3c 4b K ld hl,(l0b8dh) ;0c3d 2a 8d 0b * . . jp m,07805h ;0c40 fa 05 78 . . x add a,c ;0c43 81 . add a,(hl) ;0c44 86 . ld l,(hl) ;0c45 6e n rst 0 ;0c46 c7 . inc h ;0c47 24 $ dec hl ;0c48 2b + ei ;0c49 fb . sub d ;0c4a 92 . add a,l ;0c4b 85 . ld (hl),a ;0c4c 77 w ld a,h ;0c4d 7c | and e ;0c4e a3 . sbc a,a ;0c4f 9f . and 0b3h ;0c50 e6 b3 . . xor a ;0c52 af . call nz,017eeh ;0c53 c4 ee 17 . . . l0c56h: jp nz,0ba8fh ;0c56 c2 8f ba . . . ld b,c ;0c59 41 A ld l,h ;0c5a 6c l jp nc,098dbh ;0c5b d2 db 98 . . . jr c,l0c2bh ;0c5e 38 cb 8 . ld h,l ;0c60 65 e ld c,c ;0c61 49 I dec c ;0c62 0d . ld (069c4h),hl ;0c63 22 c4 69 " . i ld (hl),a ;0c66 77 w call z,08b46h ;0c67 cc 46 8b . F . rst 0 ;0c6a c7 . ld e,l ;0c6b 5d ] jp z,0b6c3h ;0c6c ca c3 b6 . . . or h ;0c6f b4 . call nc,09822h ;0c70 d4 22 98 . " . and b ;0c73 a0 . jp (hl) ;0c74 e9 . call nz,0f567h ;0c75 c4 67 f5 . g . xor h ;0c78 ac . xor e ;0c79 ab . push bc ;0c7a c5 . ld c,(hl) ;0c7b 4e N sub d ;0c7c 92 . ret p ;0c7d f0 . pop de ;0c7e d1 . inc l ;0c7f 2c , ld a,b ;0c80 78 x ld e,c ;0c81 59 Y ld d,0e1h ;0c82 16 e1 . . ld c,e ;0c84 4b K rst 30h ;0c85 f7 . inc bc ;0c86 03 . ld b,c ;0c87 41 A add a,a ;0c88 87 . ex (sp),hl ;0c89 e3 . cp h ;0c8a bc . ld de,01dd7h ;0c8b 11 d7 1d . . . ld e,c ;0c8e 59 Y cpl ;0c8f 2f / rst 30h ;0c90 f7 . push af ;0c91 f5 . jr nz,l0c56h ;0c92 20 c2 . xor a ;0c94 af . cp b ;0c95 b8 . inc h ;0c96 24 $ ld d,(hl) ;0c97 56 V ex af,af' ;0c98 08 . rrca ;0c99 0f . inc d ;0c9a 14 . inc sp ;0c9b 33 3 ld d,0c7h ;0c9c 16 c7 . . ld e,b ;0c9e 58 X rrca ;0c9f 0f . defb 0fdh,07ah,04eh ;illegal sequence ;0ca0 fd 7a 4e . z N halt ;0ca3 76 v ret m ;0ca4 f8 . ld h,e ;0ca5 63 c cp (hl) ;0ca6 be . sub c ;0ca7 91 . ld h,l ;0ca8 65 e dec de ;0ca9 1b . dec h ;0caa 25 % or a ;0cab b7 . ei ;0cac fb . defb 0fdh,04fh,0a4h ;illegal sequence ;0cad fd 4f a4 . O . ld (hl),d ;0cb0 72 r ld e,h ;0cb1 5c \ sub (hl) ;0cb2 96 . ret z ;0cb3 c8 . or c ;0cb4 b1 . sub (hl) ;0cb5 96 . sub 034h ;0cb6 d6 34 . 4 dec hl ;0cb8 2b + add hl,hl ;0cb9 29 ) pop hl ;0cba e1 . inc d ;0cbb 14 . ld h,h ;0cbc 64 d ld h,l ;0cbd 65 e scf ;0cbe 37 7 ld (hl),e ;0cbf 73 s inc bc ;0cc0 03 . inc hl ;0cc1 23 # ld b,0c8h ;0cc2 06 c8 . . ld e,a ;0cc4 5f _ ret pe ;0cc5 e8 . ld (hl),a ;0cc6 77 w cp d ;0cc7 ba . ld c,l ;0cc8 4d M sbc a,a ;0cc9 9f . dec de ;0cca 1b . ld b,b ;0ccb 40 @ rrca ;0ccc 0f . inc a ;0ccd 3c < ld e,h ;0cce 5c \ sbc a,l ;0ccf 9d . ld (hl),h ;0cd0 74 t jp po,0d1d1h ;0cd1 e2 d1 d1 . . . xor h ;0cd4 ac . in a,(02ch) ;0cd5 db 2c . , ld (hl),e ;0cd7 73 s ld d,a ;0cd8 57 W adc a,l ;0cd9 8d . jr z,$+28 ;0cda 28 1a ( . inc hl ;0cdc 23 # ld b,d ;0cdd 42 B ret p ;0cde f0 . dec h ;0cdf 25 % ld a,e ;0ce0 7b { sub e ;0ce1 93 . call nc,043ach ;0ce2 d4 ac 43 . . C ld e,l ;0ce5 5d ] ret p ;0ce6 f0 . l0ce7h: and l ;0ce7 a5 . and c ;0ce8 a1 . sbc a,e ;0ce9 9b . inc hl ;0cea 23 # sbc a,c ;0ceb 99 . adc a,l ;0cec 8d . call c,0cc81h ;0ced dc 81 cc . . . cpl ;0cf0 2f / ld bc,09c95h ;0cf1 01 95 9c . . . jp m,07965h ;0cf4 fa 65 79 . e y xor b ;0cf7 a8 . ld b,(hl) ;0cf8 46 F or l ;0cf9 b5 . jr l0d68h ;0cfa 18 6c . l sub d ;0cfc 92 . rst 28h ;0cfd ef . adc a,c ;0cfe 89 . ld a,(hl) ;0cff 7e ~ ld a,c ;0d00 79 y inc l ;0d01 2c , daa ;0d02 27 ' adc a,e ;0d03 8b . ld (04cb4h),a ;0d04 32 b4 4c 2 . L ld a,e ;0d07 7b { ex (sp),hl ;0d08 e3 . call m,0400ah ;0d09 fc 0a 40 . . @ ld b,e ;0d0c 43 C ld a,h ;0d0d 7c | ret ;0d0e c9 . ld h,l ;0d0f 65 e out (c),b ;0d10 ed 41 . A call nz,0995ah ;0d12 c4 5a 99 . Z . jp m,0a3adh ;0d15 fa ad a3 . . . dec sp ;0d18 3b ; cp d ;0d19 ba . ld b,c ;0d1a 41 A halt ;0d1b 76 v adc a,b ;0d1c 88 . pop de ;0d1d d1 . ld a,00ah ;0d1e 3e 0a > . sbc a,h ;0d20 9c . and h ;0d21 a4 . dec hl ;0d22 2b + ld a,a ;0d23 7f  ld a,(bc) ;0d24 0a . ld (0c27ah),a ;0d25 32 7a c2 2 z . ld (08af0h),a ;0d28 32 f0 8a 2 . . ld l,d ;0d2b 6a j sbc a,(hl) ;0d2c 9e . di ;0d2d f3 . ld l,0abh ;0d2e 2e ab . . ld hl,0e898h ;0d30 21 98 e8 ! . . ld c,l ;0d33 4d M cpl ;0d34 2f / rst 38h ;0d35 ff . ld c,l ;0d36 4d M ld c,b ;0d37 48 H pop hl ;0d38 e1 . inc c ;0d39 0c . ld a,a ;0d3a 7f  rst 10h ;0d3b d7 . inc c ;0d3c 0c . rlc c ;0d3d cb 01 . . inc e ;0d3f 1c . jr $+79 ;0d40 18 4d . M ei ;0d42 fb . ld e,(hl) ;0d43 5e ^ ld a,a ;0d44 7f  ld e,e ;0d45 5b [ ccf ;0d46 3f ? ld b,e ;0d47 43 C ld (09a8ah),a ;0d48 32 8a 9a 2 . . sub a ;0d4b 97 . ld e,b ;0d4c 58 X and e ;0d4d a3 . call c,03361h ;0d4e dc 61 33 . a 3 adc a,(hl) ;0d51 8e . add a,0f6h ;0d52 c6 f6 . . cp (hl) ;0d54 be . add a,h ;0d55 84 . ld l,h ;0d56 6c l cp l ;0d57 bd . ld d,a ;0d58 57 W ld e,(hl) ;0d59 5e ^ and c ;0d5a a1 . and b ;0d5b a0 . rra ;0d5c 1f . ld (hl),h ;0d5d 74 t ld (iy+026h),h ;0d5e fd 74 26 . t & sbc a,e ;0d61 9b . xor e ;0d62 ab . ld e,d ;0d63 5a Z dec d ;0d64 15 . ld (hl),h ;0d65 74 t dec sp ;0d66 3b ; cp (hl) ;0d67 be . l0d68h: rst 18h ;0d68 df . add a,(hl) ;0d69 86 . ld d,b ;0d6a 50 P ld (hl),036h ;0d6b 36 36 6 6 ld a,d ;0d6d 7a z cp 089h ;0d6e fe 89 . . ld a,(de) ;0d70 1a . add a,b ;0d71 80 . or l ;0d72 b5 . ld b,024h ;0d73 06 24 . $ sbc a,c ;0d75 99 . inc bc ;0d76 03 . ld bc,l0137h ;0d77 01 37 01 . 7 . ld hl,(0bc35h) ;0d7a 2a 35 bc * 5 . and 0c5h ;0d7d e6 c5 . . call m,0384ah ;0d7f fc 4a 38 . J 8 dec c ;0d82 0d . and 053h ;0d83 e6 53 . S ld l,(hl) ;0d85 6e n xor e ;0d86 ab . add a,a ;0d87 87 . and h ;0d88 a4 . add a,a ;0d89 87 . dec a ;0d8a 3d = dec a ;0d8b 3d = ld c,a ;0d8c 4f O ld hl,01f92h ;0d8d 21 92 1f ! . . add hl,hl ;0d90 29 ) ld a,(bc) ;0d91 0a . ret nz ;0d92 c0 . ld h,003h ;0d93 26 03 & . ld l,b ;0d95 68 h ld c,0aeh ;0d96 0e ae . . push hl ;0d98 e5 . or h ;0d99 b4 . add a,l ;0d9a 85 . ld l,d ;0d9b 6a j ld c,a ;0d9c 4f O ld l,b ;0d9d 68 h daa ;0d9e 27 ' inc l ;0d9f 2c , dec sp ;0da0 3b ; and e ;0da1 a3 . ld a,c ;0da2 79 y di ;0da3 f3 . dec bc ;0da4 0b . ld (hl),d ;0da5 72 r sbc a,b ;0da6 98 . sbc a,a ;0da7 9f . ld c,(hl) ;0da8 4e N ld c,b ;0da9 48 H ld e,a ;0daa 5f _ inc c ;0dab 0c . sbc a,h ;0dac 9c . add a,l ;0dad 85 . sub h ;0dae 94 . sub e ;0daf 93 . ld sp,hl ;0db0 f9 . ld sp,hl ;0db1 f9 . ld sp,hl ;0db2 f9 . or h ;0db3 b4 . ld a,093h ;0db4 3e 93 > . ld l,l ;0db6 6d m ret z ;0db7 c8 . sbc a,l ;0db8 9d . ld sp,hl ;0db9 f9 . ld e,027h ;0dba 1e 27 . ' ld d,h ;0dbc 54 T cp b ;0dbd b8 . rst 8 ;0dbe cf . ld c,b ;0dbf 48 H cp (hl) ;0dc0 be . push bc ;0dc1 c5 . add a,b ;0dc2 80 . ld l,c ;0dc3 69 i jp 0fed9h ;0dc4 c3 d9 fe . . . ld a,l ;0dc7 7d } cp b ;0dc8 b8 . ei ;0dc9 fb . ld b,l ;0dca 45 E inc sp ;0dcb 33 3 ld d,h ;0dcc 54 T add hl,de ;0dcd 19 . ld l,(hl) ;0dce 6e n inc e ;0dcf 1c . ld e,d ;0dd0 5a Z ret c ;0dd1 d8 . sbc a,d ;0dd2 9a . or 002h ;0dd3 f6 02 . . ld d,h ;0dd5 54 T ld d,(hl) ;0dd6 56 V cp (hl) ;0dd7 be . add a,l ;0dd8 85 . dec sp ;0dd9 3b ; sub a ;0dda 97 . rst 18h ;0ddb df . ld bc,0b50ah ;0ddc 01 0a b5 . . . inc sp ;0ddf 33 3 rst 0 ;0de0 c7 . dec b ;0de1 05 . ret nz ;0de2 c0 . ld (hl),061h ;0de3 36 61 6 a jp po,0a0f3h ;0de5 e2 f3 a0 . . . ld (0bd2eh),a ;0de8 32 2e bd 2 . . ld (hl),h ;0deb 74 t rst 8 ;0dec cf . jp p,0ef69h ;0ded f2 69 ef . i . defb 0edh;next byte illegal after ed ;0df0 ed . rra ;0df1 1f . adc a,h ;0df2 8c . ld a,e ;0df3 7b { cp b ;0df4 b8 . ld d,b ;0df5 50 P jr $+86 ;0df6 18 54 . T adc a,l ;0df8 8d . jp nc,05e2dh ;0df9 d2 2d 5e . - ^ xor e ;0dfc ab . add hl,sp ;0dfd 39 9 or c ;0dfe b1 . ld b,l ;0dff 45 E jp pe,0c17eh ;0e00 ea 7e c1 . ~ . jr z,l0e64h ;0e03 28 5f ( _ cp b ;0e05 b8 . call c,03e89h ;0e06 dc 89 3e . . > sbc a,a ;0e09 9f . inc h ;0e0a 24 $ ld h,l ;0e0b 65 e inc de ;0e0c 13 . ld h,(hl) ;0e0d 66 f ld c,003h ;0e0e 0e 03 . . xor a ;0e10 af . defb 0edh;next byte illegal after ed ;0e11 ed . ld d,l ;0e12 55 U ld bc,03e6ch ;0e13 01 6c 3e . l > ld c,h ;0e16 4c L dec d ;0e17 15 . ld a,(0ea6dh) ;0e18 3a 6d ea : m . ld b,e ;0e1b 43 C add a,a ;0e1c 87 . ld e,h ;0e1d 5c \ cp a ;0e1e bf . ld e,h ;0e1f 5c \ ret nz ;0e20 c0 . cp l ;0e21 bd . ld c,(hl) ;0e22 4e N ld c,d ;0e23 4a J inc de ;0e24 13 . cp e ;0e25 bb . jr nc,l0ea4h ;0e26 30 7c 0 | sbc a,h ;0e28 9c . ld (hl),e ;0e29 73 s rst 10h ;0e2a d7 . jp p,02248h ;0e2b f2 48 22 . H " cpl ;0e2e 2f / sbc a,03dh ;0e2f de 3d . = ld a,(0f4aah) ;0e31 3a aa f4 : . . ld c,b ;0e34 48 H xor c ;0e35 a9 . defb 0edh;next byte illegal after ed ;0e36 ed . call 0886ch ;0e37 cd 6c 88 . l . sub b ;0e3a 90 . ld h,h ;0e3b 64 d ld d,h ;0e3c 54 T ld de,042deh ;0e3d 11 de 42 . . B ld d,0ddh ;0e40 16 dd . . call z,08596h ;0e42 cc 96 85 . . . inc l ;0e45 2c , ld c,d ;0e46 4a J and 083h ;0e47 e6 83 . . rst 8 ;0e49 cf . ld e,b ;0e4a 58 X defb 0ddh,03bh,01bh ;illegal sequence ;0e4b dd 3b 1b . ; . ld hl,(0b950h) ;0e4e 2a 50 b9 * P . jp nc,037abh ;0e51 d2 ab 37 . . 7 ld l,c ;0e54 69 i pop af ;0e55 f1 . jp c,l081fh ;0e56 da 1f 08 . . . ld h,a ;0e59 67 g add hl,de ;0e5a 19 . ld h,073h ;0e5b 26 73 & s jr nc,l0eb8h ;0e5d 30 59 0 Y ld d,l ;0e5f 55 U xor l ;0e60 ad . or c ;0e61 b1 . ld h,b ;0e62 60 ` inc de ;0e63 13 . l0e64h: ld a,b ;0e64 78 x ld b,e ;0e65 43 C dec hl ;0e66 2b + ld hl,(093c0h) ;0e67 2a c0 93 * . . push af ;0e6a f5 . l0e6bh: inc bc ;0e6b 03 . and c ;0e6c a1 . ld (hl),a ;0e6d 77 w out (0c2h),a ;0e6e d3 c2 . . dec sp ;0e70 3b ; rra ;0e71 1f . ld h,a ;0e72 67 g sbc a,0fch ;0e73 de fc . . adc a,e ;0e75 8b . ld a,c ;0e76 79 y ld l,c ;0e77 69 i inc (hl) ;0e78 34 4 sub a ;0e79 97 . ld hl,(0a3ebh) ;0e7a 2a eb a3 * . . xor e ;0e7d ab . ld l,b ;0e7e 68 h dec hl ;0e7f 2b + ld l,(hl) ;0e80 6e n xor a ;0e81 af . ld (hl),h ;0e82 74 t ld h,d ;0e83 62 b ret ;0e84 c9 . add a,a ;0e85 87 . cp e ;0e86 bb . daa ;0e87 27 ' ld b,0dbh ;0e88 06 db . . dec sp ;0e8a 3b ; dec hl ;0e8b 2b + ld (hl),l ;0e8c 75 u ld c,h ;0e8d 4c L ld a,(de) ;0e8e 1a . jr $+59 ;0e8f 18 39 . 9 ld e,d ;0e91 5a Z ld hl,0ec4ch ;0e92 21 4c ec ! L . ld e,b ;0e95 58 X ld h,d ;0e96 62 b and c ;0e97 a1 . ld b,e ;0e98 43 C ret ;0e99 c9 . jr nz,l0ea5h ;0e9a 20 09 . ld e,e ;0e9c 5b [ ld c,(hl) ;0e9d 4e N ld d,(hl) ;0e9e 56 V jp pe,07634h ;0e9f ea 34 76 . 4 v sbc a,d ;0ea2 9a . ld e,a ;0ea3 5f _ l0ea4h: dec c ;0ea4 0d . l0ea5h: ld d,(hl) ;0ea5 56 V sub d ;0ea6 92 . rla ;0ea7 17 . or l ;0ea8 b5 . and l ;0ea9 a5 . ld h,b ;0eaa 60 ` defb 0fdh,005h,077h ;illegal sequence ;0eab fd 05 77 . . w sbc a,021h ;0eae de 21 . ! sbc a,034h ;0eb0 de 34 . 4 call po,0fd14h ;0eb2 e4 14 fd . . . ld bc,07cd8h ;0eb5 01 d8 7c . . | l0eb8h: rst 10h ;0eb8 d7 . xor a ;0eb9 af . adc a,0c0h ;0eba ce c0 . . rst 28h ;0ebc ef . jp pe,07967h ;0ebd ea 67 79 . g y ld a,(bc) ;0ec0 0a . adc a,a ;0ec1 8f . jp p,0570ah ;0ec2 f2 0a 57 . . W cp (hl) ;0ec5 be . nop ;0ec6 00 . rst 38h ;0ec7 ff . dec c ;0ec8 0d . ld (hl),0c8h ;0ec9 36 c8 6 . call c,072a9h ;0ecb dc a9 72 . . r ld e,b ;0ece 58 X inc de ;0ecf 13 . l0ed0h: ret z ;0ed0 c8 . ld c,b ;0ed1 48 H ld c,(hl) ;0ed2 4e N ld l,(hl) ;0ed3 6e n ld a,a ;0ed4 7f  ld (hl),b ;0ed5 70 p rst 38h ;0ed6 ff . dec h ;0ed7 25 % jr nz,l0ed0h ;0ed8 20 f6 . rst 20h ;0eda e7 . ld (hl),a ;0edb 77 w ld a,(010e4h) ;0edc 3a e4 10 : . . inc sp ;0edf 33 3 ld de,0f776h ;0ee0 11 76 f7 . v . ld b,028h ;0ee3 06 28 . ( jp pe,0288ch ;0ee5 ea 8c 28 . . ( adc a,l ;0ee8 8d . dec hl ;0ee9 2b + ld (064e4h),a ;0eea 32 e4 64 2 . d ei ;0eed fb . nop ;0eee 00 . jp pe,0a5a2h ;0eef ea a2 a5 . . . ld l,b ;0ef2 68 h ld b,e ;0ef3 43 C ld h,(hl) ;0ef4 66 f ld de,0bca7h ;0ef5 11 a7 bc . . . ld b,a ;0ef8 47 G ld b,a ;0ef9 47 G push de ;0efa d5 . and a ;0efb a7 . ret c ;0efc d8 . jr z,l0f3fh ;0efd 28 40 ( @ jp po,028e2h ;0eff e2 e2 28 . . ( ld h,b ;0f02 60 ` bit 6,a ;0f03 cb 77 . w ld c,e ;0f05 4b K pop af ;0f06 f1 . cp d ;0f07 ba . sub (hl) ;0f08 96 . cp (hl) ;0f09 be . ld h,c ;0f0a 61 a ld (bc),a ;0f0b 02 . ret ;0f0c c9 . ld d,c ;0f0d 51 Q ret nc ;0f0e d0 . dec l ;0f0f 2d - push bc ;0f10 c5 . ld sp,hl ;0f11 f9 . ld b,d ;0f12 42 B inc h ;0f13 24 $ sub e ;0f14 93 . adc a,h ;0f15 8c . halt ;0f16 76 v jp nc,0a2f0h ;0f17 d2 f0 a2 . . . scf ;0f1a 37 7 xor l ;0f1b ad . l0f1ch: xor l ;0f1c ad . ld h,d ;0f1d 62 b ld hl,07783h ;0f1e 21 83 77 ! . w inc hl ;0f21 23 # ld c,d ;0f22 4a J jp m,0f523h ;0f23 fa 23 f5 . # . cp b ;0f26 b8 . rst 8 ;0f27 cf . or 077h ;0f28 f6 77 . w jr nc,l0f3ch ;0f2a 30 10 0 . cp (hl) ;0f2c be . call nz,0d660h ;0f2d c4 60 d6 . ` . or h ;0f30 b4 . rst 30h ;0f31 f7 . inc bc ;0f32 03 . adc a,013h ;0f33 ce 13 . . rst 20h ;0f35 e7 . adc a,d ;0f36 8a . scf ;0f37 37 7 ld h,h ;0f38 64 d or b ;0f39 b0 . ex (sp),hl ;0f3a e3 . dec sp ;0f3b 3b ; l0f3ch: ret ;0f3c c9 . inc a ;0f3d 3c < rst 30h ;0f3e f7 . l0f3fh: and a ;0f3f a7 . inc l ;0f40 2c , rst 30h ;0f41 f7 . sbc a,d ;0f42 9a . ld c,(hl) ;0f43 4e N cp b ;0f44 b8 . call m,0ad10h ;0f45 fc 10 ad . . . ld (de),a ;0f48 12 . or h ;0f49 b4 . ld b,a ;0f4a 47 G adc a,e ;0f4b 8b . ld d,(hl) ;0f4c 56 V ret m ;0f4d f8 . sbc a,c ;0f4e 99 . ld sp,0aaebh ;0f4f 31 eb aa 1 . . dec l ;0f52 2d - ld e,l ;0f53 5d ] ld d,a ;0f54 57 W adc a,b ;0f55 88 . rla ;0f56 17 . ld (de),a ;0f57 12 . sbc a,(hl) ;0f58 9e . dec bc ;0f59 0b . ld (hl),d ;0f5a 72 r ld a,08bh ;0f5b 3e 8b > . rst 20h ;0f5d e7 . inc a ;0f5e 3c < ld a,d ;0f5f 7a z ld l,d ;0f60 6a j ld (0dcfah),hl ;0f61 22 fa dc " . . cp d ;0f64 ba . ld l,a ;0f65 6f o call m,045ddh ;0f66 fc dd 45 . . E ld h,b ;0f69 60 ` add hl,de ;0f6a 19 . inc e ;0f6b 1c . call m,04f74h ;0f6c fc 74 4f . t O sbc a,d ;0f6f 9a . jr nz,$-14 ;0f70 20 f0 . ld sp,05b93h ;0f72 31 93 5b 1 . [ scf ;0f75 37 7 add a,e ;0f76 83 . ex de,hl ;0f77 eb . and b ;0f78 a0 . xor l ;0f79 ad . sbc a,d ;0f7a 9a . ld l,b ;0f7b 68 h ld (hl),a ;0f7c 77 w add a,a ;0f7d 87 . rst 8 ;0f7e cf . defb 0ddh,0f8h,056h ;illegal sequence ;0f7f dd f8 56 . . V jp 0e066h ;0f82 c3 66 e0 . f . ld c,083h ;0f85 0e 83 . . sbc a,d ;0f87 9a . rrca ;0f88 0f . ld l,e ;0f89 6b k ld c,a ;0f8a 4f O ld b,e ;0f8b 43 C ld b,h ;0f8c 44 D djnz l0f1ch ;0f8d 10 8d . . ld l,h ;0f8f 6c l add a,e ;0f90 83 . jr z,$+115 ;0f91 28 71 ( q rst 8 ;0f93 cf . rlca ;0f94 07 . ld l,a ;0f95 6f o jp c,0250dh ;0f96 da 0d 25 . . % xor a ;0f99 af . sub h ;0f9a 94 . adc a,b ;0f9b 88 . dec e ;0f9c 1d . jr c,$-125 ;0f9d 38 81 8 . ld a,l ;0f9f 7d } add a,c ;0fa0 81 . adc a,058h ;0fa1 ce 58 . X ld h,h ;0fa3 64 d cp 00bh ;0fa4 fe 0b . . ld l,d ;0fa6 6a j jp pe,0f187h ;0fa7 ea 87 f1 . . . sub (hl) ;0faa 96 . ld d,a ;0fab 57 W set 3,l ;0fac cb dd . . jp z,08e39h ;0fae ca 39 8e . 9 . dec a ;0fb1 3d = sub a ;0fb2 97 . ld l,b ;0fb3 68 h ret z ;0fb4 c8 . rra ;0fb5 1f . and b ;0fb6 a0 . dec l ;0fb7 2d - call c,09610h ;0fb8 dc 10 96 . . . pop hl ;0fbb e1 . ld h,h ;0fbc 64 d ld l,c ;0fbd 69 i add a,e ;0fbe 83 . jr z,$-29 ;0fbf 28 e1 ( . ld a,b ;0fc1 78 x daa ;0fc2 27 ' xor c ;0fc3 a9 . ret z ;0fc4 c8 . ex af,af' ;0fc5 08 . ld l,e ;0fc6 6b k or a ;0fc7 b7 . and l ;0fc8 a5 . push bc ;0fc9 c5 . adc a,020h ;0fca ce 20 . add a,h ;0fcc 84 . add hl,bc ;0fcd 09 . or l ;0fce b5 . ld e,c ;0fcf 59 Y sbc a,b ;0fd0 98 . ld h,(hl) ;0fd1 66 f rst 8 ;0fd2 cf . jp m,0160dh ;0fd3 fa 0d 16 . . . jp po,0e569h ;0fd6 e2 69 e5 . i . ld (hl),c ;0fd9 71 q ld d,b ;0fda 50 P ld a,(05fddh) ;0fdb 3a dd 5f : . _ and b ;0fde a0 . defb 0fdh,0edh,03ch ;illegal sequence ;0fdf fd ed 3c . . < jr nc,$-95 ;0fe2 30 9f 0 . push af ;0fe4 f5 . ld c,020h ;0fe5 0e 20 . ld d,l ;0fe7 55 U inc b ;0fe8 04 . inc sp ;0fe9 33 3 jp z,08cffh ;0fea ca ff 8c . . . call nc,00989h ;0fed d4 89 09 . . . ld d,093h ;0ff0 16 93 . . ret ;0ff2 c9 . jp z,0b5f8h ;0ff3 ca f8 b5 . . . dec hl ;0ff6 2b + sub 0f3h ;0ff7 d6 f3 . . ccf ;0ff9 3f ? ex af,af' ;0ffa 08 . ret p ;0ffb f0 . and e ;0ffc a3 . and 062h ;0ffd e6 62 . b xor d ;0fff aa . z80dasm-1.1.5/test/undocasm_dd_6f.opts0000644000175000017500000000000213127235436014464 00000000000000-uz80dasm-1.1.5/test/undoc_fd_cb_00_a0.bin0000644000175000017500000000001013127235435014476 00000000000000z80dasm-1.1.5/test/undoc_dd_95.asm0000644000175000017500000000023513127235432013504 00000000000000; z80dasm 1.1.2 ; command line: ../src/z80dasm -vvv -g0 -l -o undoc_dd_95.asm undoc_dd_95.bin org 00000h defb 0ddh,095h ;sub ixl nop nop nop nop z80dasm-1.1.5/test/undocasm_fd_60.asm0000644000175000017500000000021613127235436014202 00000000000000; z80dasm 1.1.2 ; command line: ../src/z80dasm -vvv -g0 -l -o undoc_fd_60.asm undoc_fd_60.bin org 00000h ld iyh,b nop nop nop nop z80dasm-1.1.5/test/undoc_cb_34.asm0000644000175000017500000000023313127235431013467 00000000000000; z80dasm 1.1.2 ; command line: ../src/z80dasm -vvv -g0 -l -o undoc_cb_34.asm undoc_cb_34.bin org 00000h defb 0cbh,034h ;sli h nop nop nop nop z80dasm-1.1.5/test/undocasm_ed_71.blocks0000644000175000017500000000000013127235436014667 00000000000000z80dasm-1.1.5/test/undoc_fd_65.asm0000644000175000017500000000024013127235433013500 00000000000000; z80dasm 1.1.2 ; command line: ../src/z80dasm -vvv -g0 -l -o undoc_fd_65.asm undoc_fd_65.bin org 00000h defb 0fdh,065h ;ld iyh,iyl nop nop nop nop z80dasm-1.1.5/test/undoc_cb_32.bin0000644000175000017500000000000613127235431013453 000000000000002z80dasm-1.1.5/test/undoc_fd_6c.blocks0000644000175000017500000000000013127235434014246 00000000000000z80dasm-1.1.5/test/undocasm_dd_6a.asm0000644000175000017500000000021613127235436014261 00000000000000; z80dasm 1.1.2 ; command line: ../src/z80dasm -vvv -g0 -l -o undoc_dd_6a.asm undoc_dd_6a.bin org 00000h ld ixl,d nop nop nop nop z80dasm-1.1.5/test/undoc_fd_cb_00_03.blocks0000644000175000017500000000000013127235434015123 00000000000000z80dasm-1.1.5/test/undocasm_cb_30.bin0000644000175000017500000000000613127235435014156 000000000000000z80dasm-1.1.5/test/ed_at_end_2.asm0000644000175000017500000000024713127235430013534 00000000000000; z80dasm 1.1.4 ; command line: ../src/z80dasm -g0 -l -o ed_at_end.generated.asm -b ./ed_at_end.blocks ./ed_at_end.bin org 00000h nop nop nop defb 0edh,04bh z80dasm-1.1.5/test/undoc_dd_cb_00_b8.blocks0000644000175000017500000000000013127235433015207 00000000000000z80dasm-1.1.5/test/undocasm_dd_63.asm0000644000175000017500000000021613127235435014202 00000000000000; z80dasm 1.1.2 ; command line: ../src/z80dasm -vvv -g0 -l -o undoc_dd_63.asm undoc_dd_63.bin org 00000h ld ixh,e nop nop nop nop z80dasm-1.1.5/test/undoc_fd_61.blocks0000644000175000017500000000000013127235433014163 00000000000000z80dasm-1.1.5/test/undoc_dd_cb_00_00.asm0000644000175000017500000000031213127235432014425 00000000000000; z80dasm 1.1.2 ; command line: ../src/z80dasm -vvv -g0 -l -o undoc_dd_cb_00_00.asm undoc_dd_cb_00_00.bin org 00000h defb 0ddh,0cbh,000h,000h ;rlc (ix+000h) & ld b,(ix+000h) nop nop nop nop z80dasm-1.1.5/test/undocasm_fd_62.opts0000644000175000017500000000000213127235436014402 00000000000000-uz80dasm-1.1.5/test/undoc_fd_60.opts0000644000175000017500000000000013127235433013672 00000000000000z80dasm-1.1.5/test/undoc_fd_62.blocks0000644000175000017500000000000013127235433014164 00000000000000z80dasm-1.1.5/test/Makefile.in0000644000175000017500000004050713141301313012745 00000000000000# Makefile.in generated by automake 1.14.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # Makefile using z80asm # The output of the assembler can be parsed by vim or emacs. VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = test DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EXEEXT = @EXEEXT@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ TEST_CASES = labelsdd.bin \ jrwrap.bin \ basicblocks.bin \ overlapblocks.bin \ unlabeledblocks.bin \ firstlastblocks.bin \ ed_at_end_1.bin \ ed_at_end_2.bin \ undoc_cb_30.bin \ undoc_cb_31.bin \ undoc_cb_32.bin \ undoc_cb_33.bin \ undoc_cb_34.bin \ undoc_cb_35.bin \ undoc_cb_36.bin \ undoc_cb_37.bin \ undoc_dd_24.bin \ undoc_dd_25.bin \ undoc_dd_26_00.bin \ undoc_dd_2c.bin \ undoc_dd_2d.bin \ undoc_dd_2e_00.bin \ undoc_dd_44.bin \ undoc_dd_45.bin \ undoc_dd_4c.bin \ undoc_dd_4d.bin \ undoc_dd_54.bin \ undoc_dd_55.bin \ undoc_dd_5c.bin \ undoc_dd_5d.bin \ undoc_dd_60.bin \ undoc_dd_61.bin \ undoc_dd_62.bin \ undoc_dd_63.bin \ undoc_dd_64.bin \ undoc_dd_65.bin \ undoc_dd_67.bin \ undoc_dd_68.bin \ undoc_dd_69.bin \ undoc_dd_6a.bin \ undoc_dd_6b.bin \ undoc_dd_6c.bin \ undoc_dd_6d.bin \ undoc_dd_6f.bin \ undoc_dd_7c.bin \ undoc_dd_7d.bin \ undoc_dd_84.bin \ undoc_dd_85.bin \ undoc_dd_8c.bin \ undoc_dd_8d.bin \ undoc_dd_94.bin \ undoc_dd_95.bin \ undoc_dd_9c.bin \ undoc_dd_9d.bin \ undoc_dd_a4.bin \ undoc_dd_a5.bin \ undoc_dd_ac.bin \ undoc_dd_ad.bin \ undoc_dd_b4.bin \ undoc_dd_b5.bin \ undoc_dd_bc.bin \ undoc_dd_bd.bin \ undoc_dd_cb_00_00.bin \ undoc_dd_cb_00_01.bin \ undoc_dd_cb_00_02.bin \ undoc_dd_cb_00_03.bin \ undoc_dd_cb_00_04.bin \ undoc_dd_cb_00_05.bin \ undoc_dd_cb_00_06.bin \ undoc_dd_cb_00_07.bin \ undoc_dd_cb_00_08.bin \ undoc_dd_cb_00_10.bin \ undoc_dd_cb_00_18.bin \ undoc_dd_cb_00_20.bin \ undoc_dd_cb_00_28.bin \ undoc_dd_cb_00_30.bin \ undoc_dd_cb_00_38.bin \ undoc_dd_cb_00_80.bin \ undoc_dd_cb_00_88.bin \ undoc_dd_cb_00_90.bin \ undoc_dd_cb_00_98.bin \ undoc_dd_cb_00_a0.bin \ undoc_dd_cb_00_a8.bin \ undoc_dd_cb_00_b0.bin \ undoc_dd_cb_00_b8.bin \ undoc_dd_cb_00_c0.bin \ undoc_dd_cb_00_c8.bin \ undoc_dd_cb_00_d0.bin \ undoc_dd_cb_00_d8.bin \ undoc_dd_cb_00_e0.bin \ undoc_dd_cb_00_e8.bin \ undoc_dd_cb_00_f0.bin \ undoc_dd_cb_00_f8.bin \ undoc_fd_cb_00_00.bin \ undoc_fd_cb_00_01.bin \ undoc_fd_cb_00_02.bin \ undoc_fd_cb_00_03.bin \ undoc_fd_cb_00_04.bin \ undoc_fd_cb_00_05.bin \ undoc_fd_cb_00_06.bin \ undoc_fd_cb_00_07.bin \ undoc_fd_cb_00_08.bin \ undoc_fd_cb_00_10.bin \ undoc_fd_cb_00_18.bin \ undoc_fd_cb_00_20.bin \ undoc_fd_cb_00_28.bin \ undoc_fd_cb_00_30.bin \ undoc_fd_cb_00_38.bin \ undoc_fd_cb_00_80.bin \ undoc_fd_cb_00_88.bin \ undoc_fd_cb_00_90.bin \ undoc_fd_cb_00_98.bin \ undoc_fd_cb_00_a0.bin \ undoc_fd_cb_00_a8.bin \ undoc_fd_cb_00_b0.bin \ undoc_fd_cb_00_b8.bin \ undoc_fd_cb_00_c0.bin \ undoc_fd_cb_00_c8.bin \ undoc_fd_cb_00_d0.bin \ undoc_fd_cb_00_d8.bin \ undoc_fd_cb_00_e0.bin \ undoc_fd_cb_00_e8.bin \ undoc_fd_cb_00_f0.bin \ undoc_fd_cb_00_f8.bin \ undoc_ed_70.bin \ undoc_ed_71.bin \ undoc_fd_24.bin \ undoc_fd_25.bin \ undoc_fd_26_00.bin \ undoc_fd_2c.bin \ undoc_fd_2d.bin \ undoc_fd_2e_00.bin \ undoc_fd_44.bin \ undoc_fd_45.bin \ undoc_fd_4c.bin \ undoc_fd_4d.bin \ undoc_fd_54.bin \ undoc_fd_55.bin \ undoc_fd_5c.bin \ undoc_fd_5d.bin \ undoc_fd_60.bin \ undoc_fd_61.bin \ undoc_fd_62.bin \ undoc_fd_63.bin \ undoc_fd_64.bin \ undoc_fd_65.bin \ undoc_fd_67.bin \ undoc_fd_68.bin \ undoc_fd_69.bin \ undoc_fd_6a.bin \ undoc_fd_6b.bin \ undoc_fd_6c.bin \ undoc_fd_6d.bin \ undoc_fd_6f.bin \ undoc_fd_7c.bin \ undoc_fd_7d.bin \ undoc_fd_84.bin \ undoc_fd_85.bin \ undoc_fd_8c.bin \ undoc_fd_8d.bin \ undoc_fd_94.bin \ undoc_fd_95.bin \ undoc_fd_9c.bin \ undoc_fd_9d.bin \ undoc_fd_a4.bin \ undoc_fd_a5.bin \ undoc_fd_ac.bin \ undoc_fd_ad.bin \ undoc_fd_b4.bin \ undoc_fd_b5.bin \ undoc_fd_bc.bin \ undoc_fd_bd.bin \ undocasm_cb_30.bin \ undocasm_cb_31.bin \ undocasm_cb_32.bin \ undocasm_cb_33.bin \ undocasm_cb_34.bin \ undocasm_cb_35.bin \ undocasm_cb_36.bin \ undocasm_cb_37.bin \ undocasm_dd_26_00.bin \ undocasm_dd_2e_00.bin \ undocasm_dd_44.bin \ undocasm_dd_45.bin \ undocasm_dd_4c.bin \ undocasm_dd_4d.bin \ undocasm_dd_54.bin \ undocasm_dd_55.bin \ undocasm_dd_5c.bin \ undocasm_dd_5d.bin \ undocasm_dd_60.bin \ undocasm_dd_61.bin \ undocasm_dd_62.bin \ undocasm_dd_63.bin \ undocasm_dd_64.bin \ undocasm_dd_65.bin \ undocasm_dd_67.bin \ undocasm_dd_68.bin \ undocasm_dd_69.bin \ undocasm_dd_6a.bin \ undocasm_dd_6b.bin \ undocasm_dd_6c.bin \ undocasm_dd_6d.bin \ undocasm_dd_6f.bin \ undocasm_dd_cb_00_06.bin \ undocasm_ed_70.bin \ undocasm_ed_71.bin \ undocasm_fd_26_00.bin \ undocasm_fd_2e_00.bin \ undocasm_fd_44.bin \ undocasm_fd_45.bin \ undocasm_fd_4c.bin \ undocasm_fd_4d.bin \ undocasm_fd_54.bin \ undocasm_fd_55.bin \ undocasm_fd_5c.bin \ undocasm_fd_5d.bin \ undocasm_fd_60.bin \ undocasm_fd_61.bin \ undocasm_fd_62.bin \ undocasm_fd_63.bin \ undocasm_fd_64.bin \ undocasm_fd_65.bin \ undocasm_fd_67.bin \ undocasm_fd_68.bin \ undocasm_fd_69.bin \ undocasm_fd_6a.bin \ undocasm_fd_6b.bin \ undocasm_fd_6c.bin \ undocasm_fd_6d.bin \ undocasm_fd_6f.bin \ undocasm_fd_cb_00_06.bin EXTRA_DIST = stress \ $(TEST_CASES) \ $(TEST_CASES:.bin=.asm) \ $(TEST_CASES:.bin=.blocks) \ $(TEST_CASES:.bin=.opts) all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu test/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu test/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-local mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-local \ cscopelist-am ctags-am distclean distclean-generic distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ pdf-am ps ps-am tags-am uninstall uninstall-am test: cleantest $(TEST_CASES:.bin=.generated.asm) stress_test stress_test: stress ./stress $(top_builddir)/src/z80dasm 20 %.generated.asm: %.bin %.blocks %.opts %.asm $(top_builddir)/src/z80dasm -g0 -l $(shell cat $(srcdir)/$*.opts) -o $@ -b $(srcdir)/$*.blocks $(srcdir)/$< diff -u -I z80dasm $(srcdir)/$*.asm $@ z80asm $@ -o $*.generated.bin diff -u $(srcdir)/$< $*.generated.bin cleantest: clean-local clean-local: rm -f *.generated.asm *.generated.bin rm -f stress.error .PHONY: test stress_test cleantest # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: z80dasm-1.1.5/test/undoc_fd_84.opts0000644000175000017500000000000013127235434013701 00000000000000z80dasm-1.1.5/test/undocasm_ed_71.opts0000644000175000017500000000000213127235436014401 00000000000000-uz80dasm-1.1.5/test/undoc_fd_cb_00_08.opts0000644000175000017500000000000013127235434014640 00000000000000z80dasm-1.1.5/test/undoc_dd_cb_00_00.opts0000644000175000017500000000000013127235432014624 00000000000000z80dasm-1.1.5/test/undoc_fd_25.bin0000644000175000017500000000000613127235433013464 00000000000000%z80dasm-1.1.5/test/undoc_cb_37.opts0000644000175000017500000000000013127235431013667 00000000000000z80dasm-1.1.5/test/undoc_fd_cb_00_f0.opts0000644000175000017500000000000013127235435014717 00000000000000z80dasm-1.1.5/test/undocasm_fd_6b.bin0000644000175000017500000000000613127235436014251 00000000000000kz80dasm-1.1.5/test/undoc_fd_cb_00_28.asm0000644000175000017500000000031213127235434014443 00000000000000; z80dasm 1.1.2 ; command line: ../src/z80dasm -vvv -g0 -l -o undoc_fd_cb_00_28.asm undoc_fd_cb_00_28.bin org 00000h defb 0fdh,0cbh,000h,028h ;sra (iy+000h) & ld b,(iy+000h) nop nop nop nop z80dasm-1.1.5/test/undoc_fd_a5.blocks0000644000175000017500000000000013127235434014243 00000000000000z80dasm-1.1.5/test/undoc_cb_35.asm0000644000175000017500000000023313127235431013470 00000000000000; z80dasm 1.1.2 ; command line: ../src/z80dasm -vvv -g0 -l -o undoc_cb_35.asm undoc_cb_35.bin org 00000h defb 0cbh,035h ;sli l nop nop nop nop z80dasm-1.1.5/test/undoc_fd_cb_00_88.bin0000644000175000017500000000001013127235434014434 00000000000000z80dasm-1.1.5/test/undocasm_cb_37.asm0000644000175000017500000000021313127235435014175 00000000000000; z80dasm 1.1.2 ; command line: ../src/z80dasm -vvv -g0 -l -o undoc_cb_37.asm undoc_cb_37.bin org 00000h sli a nop nop nop nop z80dasm-1.1.5/test/undoc_fd_cb_00_c0.bin0000644000175000017500000000001013127235435014500 00000000000000z80dasm-1.1.5/test/undoc_dd_cb_00_02.asm0000644000175000017500000000031213127235432014427 00000000000000; z80dasm 1.1.2 ; command line: ../src/z80dasm -vvv -g0 -l -o undoc_dd_cb_00_02.asm undoc_dd_cb_00_02.bin org 00000h defb 0ddh,0cbh,000h,002h ;rlc (ix+000h) & ld d,(ix+000h) nop nop nop nop z80dasm-1.1.5/test/undoc_dd_cb_00_28.bin0000644000175000017500000000001013127235432014422 00000000000000(z80dasm-1.1.5/test/undocasm_fd_4d.bin0000644000175000017500000000000613127235436014251 00000000000000Mz80dasm-1.1.5/test/undoc_fd_6c.bin0000644000175000017500000000000613127235434013547 00000000000000lz80dasm-1.1.5/test/undoc_dd_44.bin0000644000175000017500000000000613127235431013461 00000000000000Dz80dasm-1.1.5/test/undoc_dd_cb_00_d0.asm0000644000175000017500000000031413127235433014514 00000000000000; z80dasm 1.1.2 ; command line: ../src/z80dasm -vvv -g0 -l -o undoc_dd_cb_00_d0.asm undoc_dd_cb_00_d0.bin org 00000h defb 0ddh,0cbh,000h,0d0h ;set 2,(ix+000h) & ld b,(ix+000h) nop nop nop nop z80dasm-1.1.5/test/undoc_fd_cb_00_d8.asm0000644000175000017500000000031413127235435014530 00000000000000; z80dasm 1.1.2 ; command line: ../src/z80dasm -vvv -g0 -l -o undoc_fd_cb_00_d8.asm undoc_fd_cb_00_d8.bin org 00000h defb 0fdh,0cbh,000h,0d8h ;set 3,(iy+000h) & ld b,(iy+000h) nop nop nop nop z80dasm-1.1.5/test/undoc_fd_4c.asm0000644000175000017500000000023613127235433013561 00000000000000; z80dasm 1.1.2 ; command line: ../src/z80dasm -vvv -g0 -l -o undoc_fd_4c.asm undoc_fd_4c.bin org 00000h defb 0fdh,04ch ;ld c,iyh nop nop nop nop z80dasm-1.1.5/test/undoc_fd_cb_00_d0.blocks0000644000175000017500000000000013127235435015205 00000000000000z80dasm-1.1.5/test/undocasm_dd_63.bin0000644000175000017500000000000613127235435014167 00000000000000cz80dasm-1.1.5/test/ed_at_end_1.blocks0000644000175000017500000000000013127235430014213 00000000000000z80dasm-1.1.5/test/undoc_ed_71.blocks0000644000175000017500000000000013127235433014163 00000000000000z80dasm-1.1.5/test/undocasm_fd_6d.blocks0000644000175000017500000000000013127235436014752 00000000000000z80dasm-1.1.5/test/undoc_fd_67.asm0000644000175000017500000000023613127235433013507 00000000000000; z80dasm 1.1.2 ; command line: ../src/z80dasm -vvv -g0 -l -o undoc_fd_67.asm undoc_fd_67.bin org 00000h defb 0fdh,067h ;ld iyh,a nop nop nop nop z80dasm-1.1.5/test/undoc_fd_6b.asm0000644000175000017500000000023613127235434013563 00000000000000; z80dasm 1.1.2 ; command line: ../src/z80dasm -vvv -g0 -l -o undoc_fd_6b.asm undoc_fd_6b.bin org 00000h defb 0fdh,06bh ;ld iyl,e nop nop nop nop z80dasm-1.1.5/test/undocasm_dd_6f.asm0000644000175000017500000000021613127235436014266 00000000000000; z80dasm 1.1.2 ; command line: ../src/z80dasm -vvv -g0 -l -o undoc_dd_6f.asm undoc_dd_6f.bin org 00000h ld ixl,a nop nop nop nop z80dasm-1.1.5/test/undocasm_fd_54.blocks0000644000175000017500000000000013127235436014671 00000000000000z80dasm-1.1.5/test/undoc_fd_cb_00_c0.blocks0000644000175000017500000000000013127235435015204 00000000000000z80dasm-1.1.5/test/undocasm_dd_4d.opts0000644000175000017500000000000213127235435014457 00000000000000-uz80dasm-1.1.5/test/undoc_cb_34.opts0000644000175000017500000000000013127235431013664 00000000000000z80dasm-1.1.5/test/undoc_fd_cb_00_05.bin0000644000175000017500000000001013127235434014421 00000000000000z80dasm-1.1.5/test/undoc_fd_cb_00_e8.opts0000644000175000017500000000000013127235435014726 00000000000000z80dasm-1.1.5/test/undocasm_cb_35.blocks0000644000175000017500000000000013127235435014662 00000000000000z80dasm-1.1.5/test/unlabeledblocks.blocks0000644000175000017500000000022412746655163015251 00000000000000test_bytedata1: unlabeled start 0x0002 unlabeled end 0x0006 type bytedata test_bytedata2: unlabeled first 0x0008 unlabeled end 0x000c type bytedata z80dasm-1.1.5/test/undoc_dd_cb_00_06.blocks0000644000175000017500000000000013127235432015122 00000000000000z80dasm-1.1.5/test/undoc_dd_cb_00_01.asm0000644000175000017500000000031213127235432014426 00000000000000; z80dasm 1.1.2 ; command line: ../src/z80dasm -vvv -g0 -l -o undoc_dd_cb_00_01.asm undoc_dd_cb_00_01.bin org 00000h defb 0ddh,0cbh,000h,001h ;rlc (ix+000h) & ld c,(ix+000h) nop nop nop nop z80dasm-1.1.5/test/undocasm_cb_34.asm0000644000175000017500000000021313127235435014172 00000000000000; z80dasm 1.1.2 ; command line: ../src/z80dasm -vvv -g0 -l -o undoc_cb_34.asm undoc_cb_34.bin org 00000h sli h nop nop nop nop z80dasm-1.1.5/test/undocasm_dd_54.asm0000644000175000017500000000021613127235435014202 00000000000000; z80dasm 1.1.2 ; command line: ../src/z80dasm -vvv -g0 -l -o undoc_dd_54.asm undoc_dd_54.bin org 00000h ld d,ixh nop nop nop nop z80dasm-1.1.5/test/undoc_dd_2e_00.bin0000644000175000017500000000000713127235431014040 00000000000000.z80dasm-1.1.5/test/undoc_fd_26_00.opts0000644000175000017500000000000013127235433014173 00000000000000z80dasm-1.1.5/test/undoc_fd_cb_00_10.opts0000644000175000017500000000000013127235434014631 00000000000000z80dasm-1.1.5/test/undoc_fd_cb_00_88.blocks0000644000175000017500000000000013127235434015140 00000000000000z80dasm-1.1.5/test/undoc_fd_44.blocks0000644000175000017500000000000013127235433014164 00000000000000z80dasm-1.1.5/test/undocasm_dd_5d.bin0000644000175000017500000000000613127235435014247 00000000000000]z80dasm-1.1.5/test/undocasm_dd_55.asm0000644000175000017500000000021613127235435014203 00000000000000; z80dasm 1.1.2 ; command line: ../src/z80dasm -vvv -g0 -l -o undoc_dd_55.asm undoc_dd_55.bin org 00000h ld d,ixl nop nop nop nop z80dasm-1.1.5/test/undoc_dd_6b.asm0000644000175000017500000000023613127235431013556 00000000000000; z80dasm 1.1.2 ; command line: ../src/z80dasm -vvv -g0 -l -o undoc_dd_6b.asm undoc_dd_6b.bin org 00000h defb 0ddh,06bh ;ld ixl,e nop nop nop nop z80dasm-1.1.5/test/undoc_fd_6c.opts0000644000175000017500000000000013127235434013756 00000000000000z80dasm-1.1.5/test/undoc_fd_bc.opts0000644000175000017500000000000013127235434014032 00000000000000z80dasm-1.1.5/test/undoc_fd_6f.bin0000644000175000017500000000000613127235434013552 00000000000000oz80dasm-1.1.5/test/undoc_fd_cb_00_00.opts0000644000175000017500000000000013127235434014630 00000000000000z80dasm-1.1.5/test/undocasm_cb_34.blocks0000644000175000017500000000000013127235435014661 00000000000000z80dasm-1.1.5/test/undoc_dd_cb_00_a0.opts0000644000175000017500000000000013127235433014706 00000000000000z80dasm-1.1.5/test/basicblocks.bin0000644000175000017500000001000012746655163013663 00000000000000gsJ|V){ɄwQ֐m̮3 b*\Zѣw{@8k [ JG:D]=^XrdŜAE@r!-k(qj_..WOKcV S(#RÞ΍׵+ Fpۭ ʻ)bJWb廾= sĂx^uة1:agvVȴ0h&qSw_"= u?x,X };G( NZ1 Uc,[w ź%]L!`O鯂e ?bcq)@;G`/tkt 5є(~yX`D蘭9l/*&j:>i䦲%bp/ʃ+cc܏F>$Xgvji !t[%tź4Vt&BVu7߽#=Bs>5ug^_c60F-eܙ 6dȟf^(E&>Z @R· S#+M<jk~s;trqw͵=D+4Gʋwg Paޟ < ԢKL9$f.őxZ5:.C i$ܥSL# ~M)=c8tJT M9b8Fcw}!ÅDeWg' <|J&@UMO%F#qkvC(ڗK ЀYxurei\I}MΤN+xH\õ$Ϟ^{]ce|V->wJ,mL Z6ڡwvs¹Ad=(pz/NrZ3%) $j6`UEb(?MBWg Y6m$pXh!A emT.Ml 4:Mg󍽀bv=rFgi'z`FJ Ǚs&+p꒒odk 8f&\ZXT!| #&c4Rj^dBʾ9vPZls*eGv ~/BG[":%c2(ڼ16cYS=B$'۾W(@KIx!Хnd~$%sAX s:L MPȀ"Dp:ro{^EoyCxu]7Kpz2/ +~۵H^mǹ$¿)%9^{t- P`G.XO͇Z&Q?Hl3­8%Wd}m01Qr|nVNN#-Ob]kDraB9A!X{}tXh.? Noi=3F%jkцM ;Hpۿcsڝ=IAI}n\@U>EHKDodH`" =awe%֬cKd[P$pYጮ]6{ é$Y[Ƅ6#!Rqw.5Jv?X#K nT5c=-seOG+RE4yEP+4gQۚ%0iJPړcIŅm 2=6eQURC[ymTxba#.y yctG CYCVn,w;b`royck33&IcE98f'}J1ӫ尤_hbVFB` O<)(\X EjlkTU,!E]ќۂpf"IL#Hn@d(kCLߓImqv362D9%3YLx(yGhf9h&[R,;f!$_K7xd`lv@Bd6L*|?Q?g?=~kAy豁V@Ɇy0°W{wg`ߣMպsI s +Y뺛^ d}Z 4MOъ;^&HwrHPpťˉC78ݥ qk^Ӹ\!E:CV7oHgz;AMJiVtF#]RQ9LԏJPJƩ^n# "g6hF6CLxrCBep҃. yD%-ZeHw!2v@Uh%?fK* xn$+w|泯Alۘ8eI "iwF]ö"gN,xYKAY/ ¯$V3XzNvce%Or\ȱ4+)de7s#_wM@<\tѬ,sW(#B%{ԬC]𥡛#܁/eyFl~y,'2L{ @C|eAZ;Av> + 2z2j.!M/MH  M^[?C2Xa3lW^tt&Zt;߆P66z$7*5J8 Sn==O!) &h崅jOh',;y rNH_ >mȝ'THŀi}E3TnZؚTV; 36a2.ti{PT-^9E~(_܉>$efUl>L:mC\\NJ0|sH"/=:HldTB̖,JX;*Pҫ7ig&s0YU`xC+*w;gyi4*룫h+ntbɇ';+uL9Z!LXbC [NV4v_ V`w!4|ׯgy W 6ܩrXHNnp% w:3v((+2dꢥhCfGGէ(@(`wK񺖾aQ-B$v7b!w#J#w0`ִ7d;<,NGV1-]W r> stress.error #$Z80DASM -t -a -g 0x0 stress.bin -o stress.asm 2>> stress.error $Z80DASM -l -t -a -g 0x0 stress.bin -o stress.asm 2>> stress.error z80asm stress.asm -o stress.bin.new if ! diff stress.bin stress.bin.new; then hexdump -C stress.bin > stress.hex hexdump -C stress.bin.new > stress.hex.new diff -u stress.hex stress.hex.new > stress.diff mv stress.bin "stress.$N.bin" mv stress.asm "stress.$N.asm" mv stress.diff "stress.$N.diff" mv stress.error "stress.$N.error" FAILED=$(($FAILED+1)) echo -n "x" else echo -n "." fi N=$(($N+1)) done echo rm -f stress.bin stress.asm stress.bin.new cat <