--- title: "TS2068 Bugs" type: "article" slug: "ts2068-bugs-2" url: "http://localhost/article/ts2068-bugs-2/" markdown_url: "http://localhost/article/ts2068-bugs-2.md" published_at: "2026-12-01T10:02:13+00:00" modified_at: "2026-12-01T10:02:13+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "The following pages contain a partial list of the bugs that have been found in the operating system of the TS2068. In some cases a method of correcting for the bug is given also. These pages are patterned after similar pages from the TS2068 technical manual. This article is the first of several on this…" post_tag: - name: "Full Text" slug: "fulltext" taxonomy: "post_tag" url: "http://localhost/tag/fulltext/" indiv: - name: "Alex Burr (K5XY)" slug: "alex-burr" taxonomy: "indiv" url: "http://localhost/indiv/alex-burr/" publication: "QZX" publication_r: id: 21219 title: "QZX" type: "periodical" url: "http://localhost/periodical/qzx/" authors: "Alex Burr (K5XY)" volume: "9" issue: "3" issues_articles: - id: 70173 title: "QZX v9 n3" type: "issue" url: "http://localhost/issue/qzx-v9-n3/" pages: "3-5" pubdate: "February 1991" related_articles: - id: 83425 title: "TS2068 ROM Bugs" type: "article" url: "http://localhost/article/ts2068-rom-bugs-2/" - id: 83368 title: "TS2068 ROM Bugs" type: "article" url: "http://localhost/article/ts2068-rom-bugs/" - id: 83377 title: "TS2068 Bugs" type: "article" url: "http://localhost/article/ts2068-bugs/" archive_link: false volumeissue: "v9n3" --- # TS2068 Bugs The following pages contain a partial list of the bugs that have been found in the operating system of the TS2068. In some cases a method of correcting for the bug is given also. These pages are patterned after similar pages from the TS2068 technical manual. This article is the first of several on this subject. The other articles will follow in the coming months. *** ### 6.0 Known “BUGS” and Corrections This section describes the known problems in the TS 2068 System Software and gives corrections or work-arounds where these have been defined. ### 6.1 LROS and Autostart Machine Code AROS 6.1.1 If you will be using the System ROM Keyboard routines and accessing the input character code from system variable LAST_K (5C08H), you must initialize the TS 2068 to “L” mode by setting the system variable MODE at 23617(5C41H) to zero and setting Bit 3 of FLAGS (23611 -5C3BH) to 1. (The TS 2068 is in “K” mode when control is passed from System Initialization to the Cartridge; Keyword Token codes will be placed in LAST_K instead of character codes.) 6.1.2 If you will be using the System ROM Calculator routines (RESTART 40 (28H) ) or any ROM routines that invoke them, you must initialize the System Variable MEM by doing the following: ``` LD HL,5C92H Set HL=MEMBOT LD (5C68H),HL Initialize MEM ``` 6.1.3 Chunk 3 must not be designated as “in use” by the Cartridge Memory Selection Specification byte. This will cause deselection of the bank switching code prior to completion of the transfer of control to the cartridge starting address. Once control has been transferred, the cartridge code may then enable Chunk 3 in the Dock Bank if desired. (See Section 5.1.) 6.1.4 No entry is made in the System Configuration Table for an AROS if an LROS is present. This means that an LROS designed to support either RAM based or cartridge based applications must include code for detection of an AROS. ### 6.2 Machine Code AROS When setting the AROS Overhead parameter requesting RAM space for machine code variables, 21 + n bytes (15H + n) must be requested where n is the number of bytes needed. The machine language variables area then starts at 6855H immediately following the 21-byte CHANS area. (See Section 5.1.2.3.) NOTE: This does not apply to an AROS that contains both BASIC and machine code. ### 6.3 BASIC AROS 6.3.1 USR Function – When testing the USR address against the Cartridge Memory Selection byte to determine if the address is in the Home Bank or the Dock Bank, the wrong nibble is tested in the register thus a valid cartridge address could be erroneously processed as a Home Bank address. Since the ROM code cannot be corrected, the machine code in the cartridge would have to be moved to an address that does not cause a problem. 6.3.2 FOR/NEXT – If the limit of the FOR statement has already been passed on its initial execution, (e.g. FOR A=1 TO 10 and A has been set to 12), control is passed to the statement following the corresponding NEXT. In the AROS support code, the address of this statement is lost giving unpredictable results. Since the ROM code cannot be corrected, care must be taken not to use this technique in an AROS Cartridge. Normal usage of FOR/NEXT loops is not affected. 6.3.3 Advanced Video Modes – Because the BASIC AROS support code interfaces directly to the Bank Switching code in Chunk 3 (does not access based on its relocatability), the second display file cannot be open when executing BASIC program from an AROS. ### 6.4 Video Mode Change Service 6.4.1 Available Memory Test – When the size of memory needed is calculated by adding the size of the second display file (6912 bytes or 1B00H) to the memory now in use (address in System Variable STKEND), the code fails to check for overflow. Thus if the address in STKEND is greater than 58623 (E4FFH), the fact that there is not enough free memory to open the second display file will not be detected and the system will “crash”. If your BASIC program and/or variables area are large, you may want to make this test yourself prior to invoking the Video Mode Change Service in order to avoid this problem. The size of memory needed is subsequently tested against the contents of RAMTOP and if there is not sufficient space (value in RAMTOP is less than size needed), you will get Error 4, Out of Memory. Source: TS2068 Technical Manual