The CodeBreaker (and similar devices like Action Replay, GameShark) is a memory editor, not a game-code modifier. It operates by intercepting and altering values in the PS2's RAM while the game runs.
ADDRESS VALUE TYPE (e.g., "Write 0x270F (9999) to 0x203A4B1C every frame").# Pseudocode logic
IF (frame_counter % 1 == 0) THEN WRITE_RAM(0x203A4B1C, 0x270F) # Force health to 9999 every frame
END
Modern equivalent: Cheat Engine on PC emulators (PCSX2) uses the same principles with a GUI and pointer scanning.