Jump to content

Glossary: Difference between revisions

Added memory bank.
>Bbbbbbbbba
m (Nitpicks)
>Bbbbbbbbba
(Added memory bank.)
Line 10:
:Compiled higher-level languages (i.e. all those further from machine code) are '''compiled''' to assembly language just before being '''assembled''' into an '''object file''' made of machine code, which will (by itself or after being combined with other machine code and/or other files) form the final program (such as a ROM).
:''See also:'' [[#Disassembly|disassembly]]
 
;{{Anchor|Bank}}'''Bank'''
:See [[#Memory bank|memory bank]].
 
;{{Anchor|Binary-coded decimal}}'''Binary-coded decimal''' (BCD)
Line 35 ⟶ 38:
:That data may however happen to form valid and meaningful machine code, as seen
-->
;{{Anchor|Memory bank}}'''Memory bank'''
:In the GameBoy, a segment of the ROM or the SRAM, mapped to a consecutive segment of the 16-bit GameBoy address space. With the exception of ROM bank 0 (the "home bank"), the banks are "switchable", i.e. they share the same address space ($4000~$7FFF for switchable ROM banks, $A000~$BFFF for SRAM banks), and are "switched" into and out of the accessible memory space with special instructions (technically, an "impossible write" to the ROM). This is to solve the problem that the space needed for those areas in a large game can be much larger than the 64KB that the 16-bit address space allows.
 
;{{Anchor|Overflow}}'''Overflow'''
:1. For a value to exceed the range of its data type. For example, the range for an unsigned [[byte]] is 0~255, so trying to calculate 100+200 would result in an overflow. If the condition is not checked, then the value would usually be "wrapped around" to an in-range value: The above example would give 300-256 = 44. Depending on the exact definition, may or may not include [[#Underflow|underflow]].
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.