title: "BcdAdd" description: TRSE built-in method (from IDE help)
BcdAdd
Systems: MOS6502
Parameters: a, a, n
BcdAdd( [address 1], [address 2], [number] );
- [address 1] - The address of the BCD number
- [address 2] - The address of the BCD number to add
- [number] - The length of the BCD in bytes
Description
Adds the second BCD number to the first.
Example
var
score: array[] of byte = ($12,$34,$56); // number is 563412
scoreadd: array[] of byte = ($01,$00,$00);
begin
BcdAdd( score, scoreadd, 3 );
// result = 563413