---
# System prepended metadata

title: '[Orgams] How to call orgams external routines.'

---

# [Orgams] How to call orgams external routines.

We use jumpblocks (like firmware vector), so the address is fixed.
For now they are copy-pasted when needed, e.g.:

```

```

# Routine is in the same ROM.

```
   call free_chunk
```

# Routine is in another ROM.

Well, we use dedicated "far call" routines, depending on the destination ROM (orgams, orgext, monogams, bricbrac). They are completely dynamic, so you don't need nor should know the actual ROM number.

Thoses routines are duplicated in each ROM (to avoid catch 22), and available via MACROs:

```
    CALL_BRICBRAC(free_chunk)
```
