[cc65] Bug in Switch-statement Runtime-routine

Date view Thread view Subject view

From: Greg King (gngking_at_erols.com)
Date: 2000-09-14 17:35:36


The subroutine in "libsrc/runtime/lswitch.s" has a bug in it:

The "L0:" loop doesn't reset the .Y index-register.

[Therefore, only the first (long) case is tested correctly,
all other passes through that loop test the selector against
unpredictable places in the case-table.]







----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2001-12-14 22:05:36 CET