Sign in to follow this  
Followers 0
d4rkm4n

MOV H400 K4M60? Hexadecimal

5 posts in this topic

Hi guys,

I come across a program with instruction

MOV H10 K4M60

But I cannot understand how this will turn on M64?

Tried to convert from H10 to binary (00010000).

Also there is MOV H400 K4M60 and I'm not sure which bit is trigger. I believe it was M65 but the binary is 010000000000.

Thanks!

 

Edited by d4rkm4n

Share this post


Link to post
Share on other sites

Hi

Hex 10 = Dec 16 = Bin 0000 0000 0001 0000 

I hope this helps

1 person likes this

Share this post


Link to post
Share on other sites

The K4 in the instruction represents 4 nybbles (group of 4 bits = nybble) therefore K4 signifys 16 bits

The instruction is moving Hex 10 into M60 to M75, (K4M60), as the binary pattern of hex 10 is 0000000000010000 then M64 becomes true.

 

2 people like this

Share this post


Link to post
Share on other sites
7 hours ago, nehpets said:

The K4 in the instruction represents 4 nybbles (group of 4 bits = nybble) therefore K4 signifys 16 bits

The instruction is moving Hex 10 into M60 to M75, (K4M60), as the binary pattern of hex 10 is 0000000000010000 then M64 becomes true.

 

Thanks!

How about H400? 

Binary is  010000000000 , does it mean it was for M70?

1 person likes this

Share this post


Link to post
Share on other sites

exactly

1 person likes this

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0