Re: A86:Random Integers: _convop1
[Prev][Next][Index][Thread]
Re: A86:Random Integers: _convop1
I quote a program of mine, SuckUp86, which I know works:
...
ld a,1 ;random number between 1 and 25 is needed
call _SetXXOP1 ;A --> OP1
ld a,25
call _SetXXOP2 ;A --> OP2
call _randint ;rand(OP1,OP2) --> OP1
call _CONVOP1 ;OP1 --> A
...
Cassady Roop
> i dunno about this one. i quote Assembly Studio 86:
>
> _CONVOP1 Routine
>
> Loads the integer value of OP1 into AHL.
>
> Input OP1 = value to load
> Output AHL = integer value of OP1
> Defined in ti86asm.inc:
>
> _CONVOP1 .EQU 5577h
References: