# Toshiba TLCS 900

Assembler code

```
IROM:00008100
IROM:00008100 ; =============== S U B R O U T I N E =======================================
IROM:00008100
IROM:00008100
IROM:00008100                 ; public RESET_
IROM:00008100 RESET_:                                 ; DATA XREF: IROM:00008000↑o
IROM:00008100                 DEC     0x02, XSP
IROM:00008102                 DI
IROM:00008104                 LD      (P3), 0x00      ; Port 3
IROM:00008107                 LD      (P3CR), 0xF4 ; 'ô' ; Port 3 Control
IROM:0000810A                 LD      (P3FC), 0x00    ; Port 3 Function
IROM:0000810D                 LD      (SYSCR0), 0xA0 ; ' ' ; System Clock Register 0
IROM:00008110                 LD      (SYSCR1), 0x00  ; System Clock Contol Register 1
IROM:00008113                 LD      (B0CS), 0x99 ; '™' ; Block 0 CS/WAIT Control Register
IROM:00008116                 LD      (B1CS), 0x9A ; 'š' ; Block 1 CS/WAIT Control Register
IROM:00008119                 LD      (B2CS), 0x8F    ; Block 2 CS/WAIT Control Register
IROM:0000811C                 LD      XSP, 0x0000087F
IROM:00008121                 LD      (WDMOD), 0x00   ; Watch Dog Timer Mode
IROM:00008124                 LD      (WDCR), 0xB1 ; '±' ; Watch Dog Control Register
IROM:00008127                 LD      XHL, 0x00000080 ; '€'
IROM:0000812C                 LD      BC, 0x0800
IROM:0000812F                 LD      A, 0x00
IROM:00008131
IROM:00008131 loc_8131:                               ; CODE XREF: RESET_+35↓j
IROM:00008131                 LD      (XHL), A
IROM:00008133                 INC     0x01, HL
IROM:00008135                 DJNZ    BC, (loc_8131)
IROM:00008138                 LD      (P0), 0x00      ; Port 0
IROM:0000813B                 LD      (P0CR), 0xFF    ; Port 0 Control
IROM:0000813E                 LD      (P1), 0x00      ; Port 1
IROM:00008141                 LD      (P1CR), 0xFF    ; Port 1 Control
IROM:00008144                 LD      (P1FC), 0x00    ; Port 1 Function
IROM:00008147                 LD      (P2), 0x00      ; Port 2
IROM:0000814A                 LD      (P2CR), 0xFF    ; Port 2 Control
IROM:0000814D                 LD      (P2FC), 0x00    ; Port 2 Function

```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hex-rays.com/8.4/user-guide/disassembler/disassembly-gallery/toshiba-tlcs-900.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
