If we have non-indexed variables, we have to explicitly store them in memory, then input the location in memory in the log2 command
eventSomeLogV2(uint256indexed a, bool);functionv2YulEmitLog() external {assembly {// keccak256("SomeLogV2(uint256,bool)")let signature:=0x113cea0e4d6903d772af04edb841b17a164bff0f0d88609aedd1c4ac9b0c15c2mstore(0x00,1) // load 1 (true) into the first 32 byte slot in memory log2(0,0x20, signature,5) // add reference 0x20 in log statement }