# ub0ba user exit

The ub0ba user exit reads one string
of memory. The string that is returned must be pre-allocated prior
to running oconv.

## Syntax

```
str = oconv(memory.address, ’ub0ba’)
```

## Example(s)

| memory.address | = ’40000000’ | Address in hexadecimal |
| --- | --- | --- |
| memory.address | = ’100’ | Number of decimal bytes to read |
| str | = space | |
| str | = oconv (memory.address, ’ub0ba’) | |
| byte | Contains the contents of memory location 0000:09e6. | |
Warning: Failure to follow this syntax results
in a monitor halt.

## See also

- [uc0ba user exit](https://d3codex.com/pickbasic-flashbasic/uc0ba-user-exit/)

---
Source: https://d3codex.com/pickbasic-flashbasic/ub0ba-user-exit/ - part of the D3Codex reference.
