# `extb`

[M68K Documentation](https://asm-editor.specy.app/documentation/m68k.md) › [Instructions](https://asm-editor.specy.app/documentation/m68k/instruction.md)

Web page: https://asm-editor.specy.app/documentation/m68k/instruction/extb

**Sign-extend byte to long** · 68020

Category: Arithmetic

Sign-extends the low byte of a data register to a full long.

Size .l · 68020 only: select `opt p=68020` before any code or data

## Flags

| Flag | Effect |
| --- | --- |
| X | not changed |
| N | depends on the result |
| Z | depends on the result |
| V | always 0 |
| C | always 0 |

## Forms

- `extb Dn`

## Operands

- [`Dn`](https://asm-editor.specy.app/documentation/m68k/addressing-mode/direct.md): A data register, `d0` to `d7`.

## Description

For example, if `d0` is `$12345680`, `extb.l d0` makes it `$FFFFFF80` (-128). N and Z describe the long result, V and C are cleared, and X is unchanged.
